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/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "base/strings/sys_string_conversions.h" | 10 #include "base/strings/sys_string_conversions.h" |
11 #include "components/browsing_data/core/pref_names.h" | 11 #include "components/browsing_data/core/pref_names.h" |
12 #include "components/prefs/pref_service.h" | 12 #include "components/prefs/pref_service.h" |
13 #include "components/strings/grit/components_strings.h" | 13 #include "components/strings/grit/components_strings.h" |
14 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" | 14 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" |
15 #include "ios/chrome/browser/chrome_url_constants.h" | 15 #include "ios/chrome/browser/chrome_url_constants.h" |
16 #import "ios/chrome/browser/ui/history/history_entry_item.h" | 16 #import "ios/chrome/browser/ui/history/history_entry_item.h" |
17 #import "ios/chrome/browser/ui/settings/clear_browsing_data_collection_view_cont
roller.h" | 17 #import "ios/chrome/browser/ui/settings/clear_browsing_data_collection_view_cont
roller.h" |
18 #import "ios/chrome/browser/ui/settings/settings_collection_view_controller.h" | 18 #import "ios/chrome/browser/ui/settings/settings_collection_view_controller.h" |
19 #import "ios/chrome/browser/ui/tools_menu/tools_menu_view_controller.h" | 19 #include "ios/chrome/browser/ui/tools_menu/tools_menu_constants.h" |
20 #import "ios/chrome/browser/ui/tools_menu/tools_popup_controller.h" | 20 #import "ios/chrome/browser/ui/tools_menu/tools_popup_controller.h" |
21 #import "ios/chrome/browser/ui/util/transparent_link_button.h" | 21 #import "ios/chrome/browser/ui/util/transparent_link_button.h" |
22 #include "ios/chrome/common/string_util.h" | 22 #include "ios/chrome/common/string_util.h" |
23 #include "ios/chrome/grit/ios_strings.h" | 23 #include "ios/chrome/grit/ios_strings.h" |
24 #import "ios/chrome/test/app/chrome_test_util.h" | 24 #import "ios/chrome/test/app/chrome_test_util.h" |
25 #import "ios/chrome/test/earl_grey/accessibility_util.h" | 25 #import "ios/chrome/test/earl_grey/accessibility_util.h" |
26 #import "ios/chrome/test/earl_grey/chrome_assertions.h" | 26 #import "ios/chrome/test/earl_grey/chrome_assertions.h" |
27 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h" | 27 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h" |
28 #import "ios/chrome/test/earl_grey/chrome_earl_grey_ui.h" | 28 #import "ios/chrome/test/earl_grey/chrome_earl_grey_ui.h" |
29 #import "ios/chrome/test/earl_grey/chrome_matchers.h" | 29 #import "ios/chrome/test/earl_grey/chrome_matchers.h" |
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 - (void)resetBrowsingDataPrefs { | 529 - (void)resetBrowsingDataPrefs { |
530 PrefService* prefs = chrome_test_util::GetOriginalBrowserState()->GetPrefs(); | 530 PrefService* prefs = chrome_test_util::GetOriginalBrowserState()->GetPrefs(); |
531 prefs->ClearPref(browsing_data::prefs::kDeleteBrowsingHistory); | 531 prefs->ClearPref(browsing_data::prefs::kDeleteBrowsingHistory); |
532 prefs->ClearPref(browsing_data::prefs::kDeleteCookies); | 532 prefs->ClearPref(browsing_data::prefs::kDeleteCookies); |
533 prefs->ClearPref(browsing_data::prefs::kDeleteCache); | 533 prefs->ClearPref(browsing_data::prefs::kDeleteCache); |
534 prefs->ClearPref(browsing_data::prefs::kDeletePasswords); | 534 prefs->ClearPref(browsing_data::prefs::kDeletePasswords); |
535 prefs->ClearPref(browsing_data::prefs::kDeleteFormData); | 535 prefs->ClearPref(browsing_data::prefs::kDeleteFormData); |
536 } | 536 } |
537 | 537 |
538 @end | 538 @end |
OLD | NEW |