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

Side by Side Diff: chrome/browser/policy/configuration_policy_provider_test.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, 1 month 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_provider_test.h" 5 #include "chrome/browser/policy/configuration_policy_provider_test.h"
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/message_loop/message_loop_proxy.h" 9 #include "base/message_loop/message_loop_proxy.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "chrome/browser/policy/configuration_policy_provider.h" 11 #include "chrome/browser/policy/configuration_policy_provider.h"
12 #include "chrome/browser/policy/external_data_fetcher.h"
13 #include "chrome/browser/policy/mock_configuration_policy_provider.h" 12 #include "chrome/browser/policy/mock_configuration_policy_provider.h"
14 #include "chrome/browser/policy/policy_bundle.h" 13 #include "chrome/browser/policy/policy_bundle.h"
15 #include "chrome/browser/policy/policy_map.h" 14 #include "components/policy/core/common/external_data_fetcher.h"
15 #include "components/policy/core/common/policy_map.h"
16 #include "components/policy/core/common/policy_namespace.h" 16 #include "components/policy/core/common/policy_namespace.h"
17 #include "testing/gmock/include/gmock/gmock.h" 17 #include "testing/gmock/include/gmock/gmock.h"
18 18
19 using ::testing::Mock; 19 using ::testing::Mock;
20 using ::testing::_; 20 using ::testing::_;
21 21
22 namespace policy { 22 namespace policy {
23 23
24 const char kTestChromeSchema[] = 24 const char kTestChromeSchema[] =
25 "{" 25 "{"
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 expected_bundle.Get(PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, 394 expected_bundle.Get(PolicyNamespace(POLICY_DOMAIN_EXTENSIONS,
395 "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")) 395 "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"))
396 .CopyFrom(expected_policy); 396 .CopyFrom(expected_policy);
397 expected_bundle.Get(PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, 397 expected_bundle.Get(PolicyNamespace(POLICY_DOMAIN_EXTENSIONS,
398 "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb")) 398 "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"))
399 .CopyFrom(expected_policy); 399 .CopyFrom(expected_policy);
400 EXPECT_TRUE(provider_->policies().Equals(expected_bundle)); 400 EXPECT_TRUE(provider_->policies().Equals(expected_bundle));
401 } 401 }
402 402
403 } // namespace policy 403 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698