| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #import <EarlGrey/EarlGrey.h> | 5 #import <EarlGrey/EarlGrey.h> |
| 6 #import <UIKit/UIKit.h> | 6 #import <UIKit/UIKit.h> |
| 7 #import <XCTest/XCTest.h> | 7 #import <XCTest/XCTest.h> |
| 8 | 8 |
| 9 #include "base/strings/sys_string_conversions.h" | 9 #include "base/strings/sys_string_conversions.h" |
| 10 #include "components/browsing_data/core/pref_names.h" | 10 #include "components/browsing_data/core/pref_names.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 #import "ios/chrome/test/earl_grey/chrome_test_case.h" | 29 #import "ios/chrome/test/earl_grey/chrome_test_case.h" |
| 30 #import "ios/public/provider/chrome/browser/signin/chrome_identity.h" | 30 #import "ios/public/provider/chrome/browser/signin/chrome_identity.h" |
| 31 #import "ios/public/provider/chrome/browser/signin/fake_chrome_identity.h" | 31 #import "ios/public/provider/chrome/browser/signin/fake_chrome_identity.h" |
| 32 #import "ios/public/provider/chrome/browser/signin/fake_chrome_identity_service.
h" | 32 #import "ios/public/provider/chrome/browser/signin/fake_chrome_identity_service.
h" |
| 33 #import "ios/testing/wait_util.h" | 33 #import "ios/testing/wait_util.h" |
| 34 #import "ios/web/public/test/http_server.h" | 34 #import "ios/web/public/test/http_server.h" |
| 35 #import "ios/web/public/test/http_server_util.h" | 35 #import "ios/web/public/test/http_server_util.h" |
| 36 #import "net/base/mac/url_conversions.h" | 36 #import "net/base/mac/url_conversions.h" |
| 37 #include "ui/base/l10n/l10n_util.h" | 37 #include "ui/base/l10n/l10n_util.h" |
| 38 | 38 |
| 39 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 40 #error "This file requires ARC support." |
| 41 #endif |
| 42 |
| 39 using chrome_test_util::ButtonWithAccessibilityLabelId; | 43 using chrome_test_util::ButtonWithAccessibilityLabelId; |
| 40 | 44 |
| 41 namespace { | 45 namespace { |
| 42 char kURL1[] = "http://firstURL"; | 46 char kURL1[] = "http://firstURL"; |
| 43 char kURL2[] = "http://secondURL"; | 47 char kURL2[] = "http://secondURL"; |
| 44 char kURL3[] = "http://thirdURL"; | 48 char kURL3[] = "http://thirdURL"; |
| 45 char kResponse1[] = "Test Page 1"; | 49 char kResponse1[] = "Test Page 1"; |
| 46 char kResponse2[] = "Test Page 2"; | 50 char kResponse2[] = "Test Page 2"; |
| 47 char kResponse3[] = "Test Page 3"; | 51 char kResponse3[] = "Test Page 3"; |
| 48 | 52 |
| (...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 - (void)resetBrowsingDataPrefs { | 501 - (void)resetBrowsingDataPrefs { |
| 498 PrefService* prefs = chrome_test_util::GetOriginalBrowserState()->GetPrefs(); | 502 PrefService* prefs = chrome_test_util::GetOriginalBrowserState()->GetPrefs(); |
| 499 prefs->ClearPref(browsing_data::prefs::kDeleteBrowsingHistory); | 503 prefs->ClearPref(browsing_data::prefs::kDeleteBrowsingHistory); |
| 500 prefs->ClearPref(browsing_data::prefs::kDeleteCookies); | 504 prefs->ClearPref(browsing_data::prefs::kDeleteCookies); |
| 501 prefs->ClearPref(browsing_data::prefs::kDeleteCache); | 505 prefs->ClearPref(browsing_data::prefs::kDeleteCache); |
| 502 prefs->ClearPref(browsing_data::prefs::kDeletePasswords); | 506 prefs->ClearPref(browsing_data::prefs::kDeletePasswords); |
| 503 prefs->ClearPref(browsing_data::prefs::kDeleteFormData); | 507 prefs->ClearPref(browsing_data::prefs::kDeleteFormData); |
| 504 } | 508 } |
| 505 | 509 |
| 506 @end | 510 @end |
| OLD | NEW |