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

Side by Side Diff: chrome/browser/policy/configuration_policy_pref_store_unittest.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 (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 "chrome/browser/policy/configuration_policy_pref_store_unittest.h" 5 #include "chrome/browser/policy/configuration_policy_pref_store_unittest.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/prefs/pref_store_observer_mock.h" 11 #include "base/prefs/pref_store_observer_mock.h"
12 #include "base/run_loop.h" 12 #include "base/run_loop.h"
13 #include "chrome/browser/policy/configuration_policy_handler.h" 13 #include "chrome/browser/policy/configuration_policy_handler.h"
14 #include "chrome/browser/policy/configuration_policy_pref_store.h" 14 #include "chrome/browser/policy/configuration_policy_pref_store.h"
15 #include "chrome/browser/policy/external_data_fetcher.h" 15 #include "chrome/browser/policy/policy_service_impl.h"
16 #include "chrome/browser/policy/policy_map.h" 16 #include "components/policy/core/common/external_data_fetcher.h"
17 #include "components/policy/core/common/policy_map.h"
17 #include "components/policy/core/common/policy_pref_names.h" 18 #include "components/policy/core/common/policy_pref_names.h"
18 #include "testing/gmock/include/gmock/gmock.h" 19 #include "testing/gmock/include/gmock/gmock.h"
19 20
20 using testing::Mock; 21 using testing::Mock;
21 using testing::Return; 22 using testing::Return;
22 using testing::_; 23 using testing::_;
23 24
24 namespace { 25 namespace {
25 const char kTestPolicy[] = "test.policy"; 26 const char kTestPolicy[] = "test.policy";
26 const char kTestPref[] = "test.pref"; 27 const char kTestPref[] = "test.pref";
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 EXPECT_CALL(provider_, IsInitializationComplete(POLICY_DOMAIN_CHROME)) 236 EXPECT_CALL(provider_, IsInitializationComplete(POLICY_DOMAIN_CHROME))
236 .WillRepeatedly(Return(true)); 237 .WillRepeatedly(Return(true));
237 EXPECT_CALL(observer_, OnInitializationCompleted(true)).Times(1); 238 EXPECT_CALL(observer_, OnInitializationCompleted(true)).Times(1);
238 PolicyMap policy; 239 PolicyMap policy;
239 UpdateProviderPolicy(policy); 240 UpdateProviderPolicy(policy);
240 Mock::VerifyAndClearExpectations(&observer_); 241 Mock::VerifyAndClearExpectations(&observer_);
241 EXPECT_TRUE(store_->IsInitializationComplete()); 242 EXPECT_TRUE(store_->IsInitializationComplete());
242 } 243 }
243 244
244 } // namespace policy 245 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698