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

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

Issue 109743002: Move policy code into components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar fixes 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 "chrome/browser/chromeos/policy/cloud_external_data_manager_base_test_u til.h" 5 #include "chrome/browser/chromeos/policy/cloud_external_data_manager_base_test_u til.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "base/sha1.h" 9 #include "base/sha1.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "chrome/browser/policy/cloud/cloud_external_data_manager.h" 12 #include "components/policy/core/common/cloud/cloud_external_data_manager.h"
13 #include "chrome/browser/policy/cloud/cloud_policy_core.h" 13 #include "components/policy/core/common/cloud/cloud_policy_core.h"
14 #include "chrome/browser/policy/cloud/cloud_policy_store.h" 14 #include "components/policy/core/common/cloud/cloud_policy_store.h"
15 #include "components/policy/core/common/external_data_fetcher.h" 15 #include "components/policy/core/common/external_data_fetcher.h"
16 #include "components/policy/core/common/policy_map.h" 16 #include "components/policy/core/common/policy_map.h"
17 #include "components/policy/core/common/policy_types.h" 17 #include "components/policy/core/common/policy_types.h"
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
19 19
20 namespace policy { 20 namespace policy {
21 namespace test { 21 namespace test {
22 22
23 void ExternalDataFetchCallback(scoped_ptr<std::string>* destination, 23 void ExternalDataFetchCallback(scoped_ptr<std::string>* destination,
24 const base::Closure& done_callback, 24 const base::Closure& done_callback,
(...skipping 22 matching lines...) Expand all
47 policy_map.Set(policy, 47 policy_map.Set(policy,
48 POLICY_LEVEL_MANDATORY, POLICY_SCOPE_USER, 48 POLICY_LEVEL_MANDATORY, POLICY_SCOPE_USER,
49 metadata.release(), 49 metadata.release(),
50 new ExternalDataFetcher(store->external_data_manager(), 50 new ExternalDataFetcher(store->external_data_manager(),
51 policy)); 51 policy));
52 store->SetPolicyMapForTesting(policy_map); 52 store->SetPolicyMapForTesting(policy_map);
53 } 53 }
54 54
55 } // namespace test 55 } // namespace test
56 } // namespace policy 56 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698