OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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.MoreAsserts; | 7 import android.test.MoreAsserts; |
8 import android.test.suitebuilder.annotation.MediumTest; | 8 import android.test.suitebuilder.annotation.MediumTest; |
9 import android.test.suitebuilder.annotation.SmallTest; | 9 import android.test.suitebuilder.annotation.SmallTest; |
10 import android.util.Pair; | 10 import android.util.Pair; |
(...skipping 11 matching lines...) Expand all Loading... |
22 import java.util.Arrays; | 22 import java.util.Arrays; |
23 import java.util.Date; | 23 import java.util.Date; |
24 import java.util.HashSet; | 24 import java.util.HashSet; |
25 import java.util.List; | 25 import java.util.List; |
26 import java.util.Set; | 26 import java.util.Set; |
27 import java.util.concurrent.atomic.AtomicInteger; | 27 import java.util.concurrent.atomic.AtomicInteger; |
28 | 28 |
29 /** | 29 /** |
30 * Tests for the CookieManager. | 30 * Tests for the CookieManager. |
31 */ | 31 */ |
32 public class CookieManagerTest extends AndroidWebViewTestBase { | 32 public class CookieManagerTest extends AwTestBase { |
33 | 33 |
34 private AwCookieManager mCookieManager; | 34 private AwCookieManager mCookieManager; |
35 private TestAwContentsClient mContentsClient; | 35 private TestAwContentsClient mContentsClient; |
36 private AwContents mAwContents; | 36 private AwContents mAwContents; |
37 | 37 |
38 @Override | 38 @Override |
39 protected void setUp() throws Exception { | 39 protected void setUp() throws Exception { |
40 super.setUp(); | 40 super.setUp(); |
41 | 41 |
42 mCookieManager = new AwCookieManager(); | 42 mCookieManager = new AwCookieManager(); |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 | 231 |
232 mCookieManager.removeAllCookie(); | 232 mCookieManager.removeAllCookie(); |
233 assertTrue(CriteriaHelper.pollForCriteria(new Criteria() { | 233 assertTrue(CriteriaHelper.pollForCriteria(new Criteria() { |
234 @Override | 234 @Override |
235 public boolean isSatisfied() { | 235 public boolean isSatisfied() { |
236 return mCookieManager.getCookie(url) == null; | 236 return mCookieManager.getCookie(url) == null; |
237 } | 237 } |
238 })); | 238 })); |
239 } | 239 } |
240 } | 240 } |
OLD | NEW |