| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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.android_webview.test; | 5 package org.chromium.android_webview.test; |
| 6 | 6 |
| 7 import android.test.suitebuilder.annotation.SmallTest; | 7 import android.test.suitebuilder.annotation.SmallTest; |
| 8 import android.util.Pair; | 8 import android.util.Pair; |
| 9 | 9 |
| 10 import org.chromium.android_webview.AwContents; |
| 10 import org.chromium.base.test.util.Feature; | 11 import org.chromium.base.test.util.Feature; |
| 11 import org.chromium.content.browser.test.util.CallbackHelper; | 12 import org.chromium.content.browser.test.util.CallbackHelper; |
| 12 import org.chromium.android_webview.AwContents; | |
| 13 import org.chromium.net.test.util.TestWebServer; | 13 import org.chromium.net.test.util.TestWebServer; |
| 14 | 14 |
| 15 import java.util.ArrayList; | 15 import java.util.ArrayList; |
| 16 import java.util.List; | 16 import java.util.List; |
| 17 | 17 |
| 18 /** | 18 /** |
| 19 * Tests for the AwContentsClient.onReceivedLoginRequest callback. | 19 * Tests for the AwContentsClient.onReceivedLoginRequest callback. |
| 20 */ | 20 */ |
| 21 public class AwContentsClientAutoLoginTest extends AwTestBase { | 21 public class AwContentsClientAutoLoginTest extends AwTestBase { |
| 22 public static class OnReceivedLoginRequestHelper extends CallbackHelper { | 22 public static class OnReceivedLoginRequestHelper extends CallbackHelper { |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 @SmallTest | 124 @SmallTest |
| 125 public void testAutoLoginOnNonGoogle() throws Throwable { | 125 public void testAutoLoginOnNonGoogle() throws Throwable { |
| 126 autoLoginTestHelper( | 126 autoLoginTestHelper( |
| 127 "testAutoLoginOnGoogleCom", /* testName */ | 127 "testAutoLoginOnGoogleCom", /* testName */ |
| 128 "realm=com.bar&account=foo%40bar.com&args=args", /* xAutoLoginHe
ader */ | 128 "realm=com.bar&account=foo%40bar.com&args=args", /* xAutoLoginHe
ader */ |
| 129 "com.bar", /* expectedRealm */ | 129 "com.bar", /* expectedRealm */ |
| 130 "foo@bar.com", /* expectedAccount */ | 130 "foo@bar.com", /* expectedAccount */ |
| 131 "args" /* expectedArgs */); | 131 "args" /* expectedArgs */); |
| 132 } | 132 } |
| 133 } | 133 } |
| OLD | NEW |