| 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 #import "ios/chrome/browser/ui/settings/bandwidth_management_collection_view_con
troller.h" | 5 #import "ios/chrome/browser/ui/settings/bandwidth_management_collection_view_con
troller.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/message_loop/message_loop.h" |
| 10 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
| 11 #include "base/test/test_simple_task_runner.h" | 12 #include "base/test/test_simple_task_runner.h" |
| 12 #include "components/pref_registry/pref_registry_syncable.h" | 13 #include "components/pref_registry/pref_registry_syncable.h" |
| 13 #include "components/prefs/testing_pref_service.h" | 14 #include "components/prefs/testing_pref_service.h" |
| 14 #include "components/sync_preferences/pref_service_mock_factory.h" | 15 #include "components/sync_preferences/pref_service_mock_factory.h" |
| 15 #include "components/sync_preferences/pref_service_syncable.h" | 16 #include "components/sync_preferences/pref_service_syncable.h" |
| 16 #include "ios/chrome/browser/browser_state/test_chrome_browser_state.h" | 17 #include "ios/chrome/browser/browser_state/test_chrome_browser_state.h" |
| 17 #include "ios/chrome/browser/pref_names.h" | 18 #include "ios/chrome/browser/pref_names.h" |
| 18 #include "ios/chrome/browser/prefs/browser_prefs.h" | 19 #include "ios/chrome/browser/prefs/browser_prefs.h" |
| 19 #import "ios/chrome/browser/ui/collection_view/collection_view_controller_test.h
" | 20 #import "ios/chrome/browser/ui/collection_view/collection_view_controller_test.h
" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 l10n_util::GetNSString(IDS_IOS_OPTIONS_PRELOAD_WEBPAGES); | 88 l10n_util::GetNSString(IDS_IOS_OPTIONS_PRELOAD_WEBPAGES); |
| 88 NSString* expected_subtitle = [DataplanUsageCollectionViewController | 89 NSString* expected_subtitle = [DataplanUsageCollectionViewController |
| 89 currentLabelForPreference:chrome_browser_state_->GetPrefs() | 90 currentLabelForPreference:chrome_browser_state_->GetPrefs() |
| 90 basePref:prefs::kNetworkPredictionEnabled | 91 basePref:prefs::kNetworkPredictionEnabled |
| 91 wifiPref:prefs::kNetworkPredictionWifiOnly]; | 92 wifiPref:prefs::kNetworkPredictionWifiOnly]; |
| 92 CheckTextCellTitleAndSubtitle(expected_title, expected_subtitle, | 93 CheckTextCellTitleAndSubtitle(expected_title, expected_subtitle, |
| 93 action_section, 0); | 94 action_section, 0); |
| 94 } | 95 } |
| 95 | 96 |
| 96 } // namespace | 97 } // namespace |
| OLD | NEW |