// Path: mobile/src/main/java/com/fuzz/emptyhusk/InstrumentationAwareActivity.java
// public class InstrumentationAwareActivity extends AppCompatActivity {
// 
//     public MainViewBinding binding;
//     public PickerDelegate pickerDelegate;
// 
//     public ViewGroup inflationFrame;
// 
//     @Override
//     protected void onCreate(@Nullable Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         setContentView(R.layout.activity_main);
// 
//         binding = new MainViewBinding(findViewById(R.id.root));
//         pickerDelegate = new PickerDelegate(binding);
// 
//         setSupportActionBar(binding.toolbar);
// 
//         inflationFrame = (ViewGroup) getLayoutInflater().inflate(R.layout.test_frame, binding.root, false);
//     }
// 
//     public <T extends View> T inflateLayout(@LayoutRes int layoutId, Class<T> clazz) {
//         View inflated = getLayoutInflater().inflate(layoutId, inflationFrame, false);
//         return clazz.cast(inflated);
//     }
// }


import android.support.test.InstrumentationRegistry;
import android.support.test.rule.ActivityTestRule;
import android.widget.FrameLayout;
import com.fuzz.emptyhusk.InstrumentationAwareActivity;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.Timeout;
import java.util.concurrent.TimeUnit;
import static android.view.ViewGroup.LayoutParams.WRAP_CONTENT;
import static android.view.WindowManager.LayoutParams.FLAG_ALLOW_LOCK_WHILE_SCREEN_ON;
import static android.view.WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD;
import static android.view.WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON;
import static android.view.WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED;
import static android.view.WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON;
import static org.hamcrest.Matchers.instanceOf;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertThat;
/*
 * Copyright 2016 Philip Cohn-Cort
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.fuzz.indicator;






/**
 * Tests to make sure that the {@link com.fuzz.indicator.CutoutViewIndicator}
 * is inflated correctly.
 *
 * @author Philip Cohn-Cort (Fuzz)
 */
public class CutoutViewIndicatorAttributesTest {

    @Rule
    public ActivityTestRule<InstrumentationAwareActivity> actRule
            = new ActivityTestRule<>(InstrumentationAwareActivity.class);

    @Rule
    public Timeout timeout = new Timeout(1, TimeUnit.MINUTES);

    private CutoutViewIndicator indicatorUnderTest;

    @Before
    public void setUp() throws Throwable {
// Path: mobile/src/main/java/com/fuzz/emptyhusk/InstrumentationAwareActivity.java
// public class InstrumentationAwareActivity extends AppCompatActivity {
// 
//     public MainViewBinding binding;
//     public PickerDelegate pickerDelegate;
// 
//     public ViewGroup inflationFrame;
// 
//     @Override
//     protected void onCreate(@Nullable Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         setContentView(R.layout.activity_main);
// 
//         binding = new MainViewBinding(findViewById(R.id.root));
//         pickerDelegate = new PickerDelegate(binding);
// 
//         setSupportActionBar(binding.toolbar);
// 
//         inflationFrame = (ViewGroup) getLayoutInflater().inflate(R.layout.test_frame, binding.root, false);
//     }
// 
//     public <T extends View> T inflateLayout(@LayoutRes int layoutId, Class<T> clazz) {
//         View inflated = getLayoutInflater().inflate(layoutId, inflationFrame, false);
//         return clazz.cast(inflated);
//     }
// }


// Path: mobile/src/androidTest/java/com/fuzz/indicator/CutoutViewIndicatorAttributesTest.java
import android.support.test.InstrumentationRegistry;
import android.support.test.rule.ActivityTestRule;
import android.widget.FrameLayout;
import com.fuzz.emptyhusk.InstrumentationAwareActivity;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.Timeout;
import java.util.concurrent.TimeUnit;
import static android.view.ViewGroup.LayoutParams.WRAP_CONTENT;
import static android.view.WindowManager.LayoutParams.FLAG_ALLOW_LOCK_WHILE_SCREEN_ON;
import static android.view.WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD;
import static android.view.WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON;
import static android.view.WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED;
import static android.view.WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON;
import static org.hamcrest.Matchers.instanceOf;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertThat;

/*
 * Copyright 2016 Philip Cohn-Cort
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.fuzz.indicator;






/**
 * Tests to make sure that the {@link com.fuzz.indicator.CutoutViewIndicator}
 * is inflated correctly.
 *
 * @author Philip Cohn-Cort (Fuzz)
 */
public class CutoutViewIndicatorAttributesTest {

    @Rule
    public ActivityTestRule<InstrumentationAwareActivity> actRule
            = new ActivityTestRule<>(InstrumentationAwareActivity.class);

    @Rule
    public Timeout timeout = new Timeout(1, TimeUnit.MINUTES);

    private CutoutViewIndicator indicatorUnderTest;

    @Before
    public void setUp() throws Throwable {
        actRule.runOnUiThread(new Runnable() {