Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(311)

Side by Side Diff: chrome/browser/policy/policy_prefs_browsertest.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #include <stddef.h> 5 #include <stddef.h>
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cstdlib> 8 #include <cstdlib>
9 #include <map> 9 #include <map>
10 #include <sstream> 10 #include <sstream>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/files/file_path.h" 14 #include "base/files/file_path.h"
15 #include "base/files/file_util.h" 15 #include "base/files/file_util.h"
16 #include "base/json/json_reader.h" 16 #include "base/json/json_reader.h"
17 #include "base/logging.h" 17 #include "base/logging.h"
18 #include "base/macros.h" 18 #include "base/macros.h"
19 #include "base/memory/scoped_ptr.h" 19 #include "base/memory/scoped_ptr.h"
20 #include "base/memory/scoped_vector.h" 20 #include "base/memory/scoped_vector.h"
21 #include "base/memory/weak_ptr.h" 21 #include "base/memory/weak_ptr.h"
22 #include "base/prefs/pref_service.h"
23 #include "base/run_loop.h" 22 #include "base/run_loop.h"
24 #include "base/stl_util.h" 23 #include "base/stl_util.h"
25 #include "base/strings/string_util.h" 24 #include "base/strings/string_util.h"
26 #include "base/strings/utf_string_conversions.h" 25 #include "base/strings/utf_string_conversions.h"
27 #include "base/values.h" 26 #include "base/values.h"
28 #include "build/build_config.h" 27 #include "build/build_config.h"
29 #include "chrome/browser/browser_process.h" 28 #include "chrome/browser/browser_process.h"
30 #include "chrome/browser/profiles/profile.h" 29 #include "chrome/browser/profiles/profile.h"
31 #include "chrome/browser/search_engines/template_url_service_factory.h" 30 #include "chrome/browser/search_engines/template_url_service_factory.h"
32 #include "chrome/browser/ui/browser.h" 31 #include "chrome/browser/ui/browser.h"
33 #include "chrome/browser/ui/tabs/tab_strip_model.h" 32 #include "chrome/browser/ui/tabs/tab_strip_model.h"
34 #include "chrome/test/base/in_process_browser_test.h" 33 #include "chrome/test/base/in_process_browser_test.h"
35 #include "chrome/test/base/search_test_utils.h" 34 #include "chrome/test/base/search_test_utils.h"
36 #include "chrome/test/base/ui_test_utils.h" 35 #include "chrome/test/base/ui_test_utils.h"
37 #include "components/policy/core/browser/browser_policy_connector.h" 36 #include "components/policy/core/browser/browser_policy_connector.h"
38 #include "components/policy/core/common/external_data_fetcher.h" 37 #include "components/policy/core/common/external_data_fetcher.h"
39 #include "components/policy/core/common/external_data_manager.h" 38 #include "components/policy/core/common/external_data_manager.h"
40 #include "components/policy/core/common/mock_configuration_policy_provider.h" 39 #include "components/policy/core/common/mock_configuration_policy_provider.h"
41 #include "components/policy/core/common/policy_details.h" 40 #include "components/policy/core/common/policy_details.h"
42 #include "components/policy/core/common/policy_map.h" 41 #include "components/policy/core/common/policy_map.h"
43 #include "components/policy/core/common/policy_types.h" 42 #include "components/policy/core/common/policy_types.h"
44 #include "components/policy/core/common/schema.h" 43 #include "components/policy/core/common/schema.h"
44 #include "components/prefs/pref_service.h"
45 #include "content/public/browser/web_contents.h" 45 #include "content/public/browser/web_contents.h"
46 #include "content/public/test/browser_test_utils.h" 46 #include "content/public/test/browser_test_utils.h"
47 #include "policy/policy_constants.h" 47 #include "policy/policy_constants.h"
48 #include "testing/gmock/include/gmock/gmock.h" 48 #include "testing/gmock/include/gmock/gmock.h"
49 #include "testing/gtest/include/gtest/gtest.h" 49 #include "testing/gtest/include/gtest/gtest.h"
50 #include "url/gurl.h" 50 #include "url/gurl.h"
51 51
52 using testing::Return; 52 using testing::Return;
53 using testing::_; 53 using testing::_;
54 54
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after
758 } 758 }
759 } 759 }
760 } 760 }
761 } 761 }
762 762
763 INSTANTIATE_TEST_CASE_P(PolicyPrefIndicatorTestInstance, 763 INSTANTIATE_TEST_CASE_P(PolicyPrefIndicatorTestInstance,
764 PolicyPrefIndicatorTest, 764 PolicyPrefIndicatorTest,
765 testing::ValuesIn(SplitPoliciesIntoChunks(10))); 765 testing::ValuesIn(SplitPoliciesIntoChunks(10)));
766 766
767 } // namespace policy 767 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/policy_browsertest.cc ('k') | chrome/browser/predictors/resource_prefetch_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698