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

Side by Side Diff: chrome/browser/chromeos/policy/user_cloud_external_data_manager_browsertest.cc

Issue 78763002: Move PolicyMap and its dependencies to components/policy/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: export nested struct Created 7 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 <string> 5 #include <string>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/path_service.h" 12 #include "base/path_service.h"
13 #include "base/run_loop.h" 13 #include "base/run_loop.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 #include "chrome/browser/chromeos/policy/cloud_external_data_manager_base.h" 15 #include "chrome/browser/chromeos/policy/cloud_external_data_manager_base.h"
16 #include "chrome/browser/chromeos/policy/cloud_external_data_manager_base_test_u til.h" 16 #include "chrome/browser/chromeos/policy/cloud_external_data_manager_base_test_u til.h"
17 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h" 17 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h"
18 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chrom eos.h" 18 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chrom eos.h"
19 #include "chrome/browser/policy/cloud/cloud_policy_core.h" 19 #include "chrome/browser/policy/cloud/cloud_policy_core.h"
20 #include "chrome/browser/policy/external_data_fetcher.h"
21 #include "chrome/browser/policy/policy_map.h"
22 #include "chrome/browser/policy/policy_service.h" 20 #include "chrome/browser/policy/policy_service.h"
23 #include "chrome/browser/policy/profile_policy_connector.h" 21 #include "chrome/browser/policy/profile_policy_connector.h"
24 #include "chrome/browser/policy/profile_policy_connector_factory.h" 22 #include "chrome/browser/policy/profile_policy_connector_factory.h"
25 #include "chrome/browser/profiles/profile.h" 23 #include "chrome/browser/profiles/profile.h"
26 #include "chrome/browser/ui/browser.h" 24 #include "chrome/browser/ui/browser.h"
27 #include "chrome/common/chrome_paths.h" 25 #include "chrome/common/chrome_paths.h"
28 #include "chrome/test/base/in_process_browser_test.h" 26 #include "chrome/test/base/in_process_browser_test.h"
27 #include "components/policy/core/common/external_data_fetcher.h"
28 #include "components/policy/core/common/policy_map.h"
29 #include "content/public/test/test_utils.h" 29 #include "content/public/test/test_utils.h"
30 #include "net/test/embedded_test_server/embedded_test_server.h" 30 #include "net/test/embedded_test_server/embedded_test_server.h"
31 #include "policy/policy_constants.h" 31 #include "policy/policy_constants.h"
32 #include "testing/gtest/include/gtest/gtest.h" 32 #include "testing/gtest/include/gtest/gtest.h"
33 #include "url/gurl.h" 33 #include "url/gurl.h"
34 34
35 namespace policy { 35 namespace policy {
36 36
37 namespace { 37 namespace {
38 38
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 &test::ExternalDataFetchCallback, 92 &test::ExternalDataFetchCallback,
93 &fetched_external_data, 93 &fetched_external_data,
94 run_loop.QuitClosure())); 94 run_loop.QuitClosure()));
95 run_loop.Run(); 95 run_loop.Run();
96 96
97 ASSERT_TRUE(fetched_external_data); 97 ASSERT_TRUE(fetched_external_data);
98 EXPECT_EQ(external_data, *fetched_external_data); 98 EXPECT_EQ(external_data, *fetched_external_data);
99 } 99 }
100 100
101 } // namespace policy 101 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698