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

Side by Side Diff: components/policy/core/common/forwarding_policy_provider_unittest.cc

Issue 92133003: Move ForwardingPolicyProvider, etc. to components/policy/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
« no previous file with comments | « components/policy/core/common/forwarding_policy_provider.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/policy/forwarding_policy_provider.h" 5 #include "components/policy/core/common/forwarding_policy_provider.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "components/policy/core/common/mock_configuration_policy_provider.h" 9 #include "components/policy/core/common/mock_configuration_policy_provider.h"
10 #include "components/policy/core/common/policy_bundle.h" 10 #include "components/policy/core/common/policy_bundle.h"
11 #include "components/policy/core/common/policy_map.h" 11 #include "components/policy/core/common/policy_map.h"
12 #include "components/policy/core/common/policy_types.h" 12 #include "components/policy/core/common/policy_types.h"
13 #include "components/policy/core/common/schema.h" 13 #include "components/policy/core/common/schema.h"
14 #include "components/policy/core/common/schema_registry.h" 14 #include "components/policy/core/common/schema_registry.h"
15 #include "testing/gmock/include/gmock/gmock.h" 15 #include "testing/gmock/include/gmock/gmock.h"
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 204
205 EXPECT_CALL(observer_, OnUpdatePolicy(_)); 205 EXPECT_CALL(observer_, OnUpdatePolicy(_));
206 copy.reset(new PolicyBundle); 206 copy.reset(new PolicyBundle);
207 copy->CopyFrom(platform_policy); 207 copy->CopyFrom(platform_policy);
208 mock_provider_.UpdatePolicy(copy.Pass()); 208 mock_provider_.UpdatePolicy(copy.Pass());
209 Mock::VerifyAndClearExpectations(&observer_); 209 Mock::VerifyAndClearExpectations(&observer_);
210 EXPECT_TRUE(forwarding_provider_.policies().Equals(platform_policy)); 210 EXPECT_TRUE(forwarding_provider_.policies().Equals(platform_policy));
211 } 211 }
212 212
213 } // namespace policy 213 } // namespace policy
OLDNEW
« no previous file with comments | « components/policy/core/common/forwarding_policy_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698