| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.chrome.browser.partnercustomizations; | 5 package org.chromium.chrome.browser.partnercustomizations; |
| 6 | 6 |
| 7 import android.net.Uri; | 7 import android.net.Uri; |
| 8 import android.os.Bundle; | 8 import android.os.Bundle; |
| 9 import android.test.suitebuilder.annotation.SmallTest; | 9 import android.support.test.filters.SmallTest; |
| 10 | 10 |
| 11 import org.chromium.base.ThreadUtils; | 11 import org.chromium.base.ThreadUtils; |
| 12 import org.chromium.base.test.util.Feature; | 12 import org.chromium.base.test.util.Feature; |
| 13 import org.chromium.chrome.test.partnercustomizations.TestPartnerBrowserCustomiz
ationsProvider; | 13 import org.chromium.chrome.test.partnercustomizations.TestPartnerBrowserCustomiz
ationsProvider; |
| 14 | 14 |
| 15 /** | 15 /** |
| 16 * Unit tests for the partner disabling incognito mode functionality. | 16 * Unit tests for the partner disabling incognito mode functionality. |
| 17 */ | 17 */ |
| 18 public class PartnerDisableIncognitoModeUnitTest extends BasePartnerBrowserCusto
mizationUnitTest { | 18 public class PartnerDisableIncognitoModeUnitTest extends BasePartnerBrowserCusto
mizationUnitTest { |
| 19 | 19 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 assertFalse(PartnerBrowserCustomizations.isIncognitoDisabled()); | 133 assertFalse(PartnerBrowserCustomizations.isIncognitoDisabled()); |
| 134 | 134 |
| 135 PartnerBrowserCustomizations.setOnInitializeAsyncFinished(mCallback, 300
0); | 135 PartnerBrowserCustomizations.setOnInitializeAsyncFinished(mCallback, 300
0); |
| 136 | 136 |
| 137 mCallbackLock.acquire(); | 137 mCallbackLock.acquire(); |
| 138 | 138 |
| 139 assertTrue(PartnerBrowserCustomizations.isInitialized()); | 139 assertTrue(PartnerBrowserCustomizations.isInitialized()); |
| 140 assertTrue(PartnerBrowserCustomizations.isIncognitoDisabled()); | 140 assertTrue(PartnerBrowserCustomizations.isIncognitoDisabled()); |
| 141 } | 141 } |
| 142 } | 142 } |
| OLD | NEW |