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

Side by Side Diff: chrome/browser/policy/configuration_policy_provider_test.cc

Issue 16254003: WIP (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months 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/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/policy/configuration_policy_provider.h" 10 #include "chrome/browser/policy/configuration_policy_provider.h"
11 #include "chrome/browser/policy/mock_configuration_policy_provider.h" 11 #include "chrome/browser/policy/mock_configuration_policy_provider.h"
12 #include "chrome/browser/policy/policy_bundle.h" 12 #include "chrome/browser/policy/policy_bundle.h"
13 #include "chrome/browser/policy/policy_map.h" 13 #include "chrome/browser/policy/policy_map.h"
14 #include "chrome/browser/policy/policy_namespace.h"
14 #include "policy/policy_constants.h" 15 #include "policy/policy_constants.h"
15 #include "testing/gmock/include/gmock/gmock.h" 16 #include "testing/gmock/include/gmock/gmock.h"
16 17
17 using content::BrowserThread; 18 using content::BrowserThread;
18 using ::testing::Mock; 19 using ::testing::Mock;
19 using ::testing::_; 20 using ::testing::_;
20 21
21 namespace policy { 22 namespace policy {
22 23
23 namespace test_policy_definitions { 24 namespace test_policy_definitions {
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 expected_bundle.Get(PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, 325 expected_bundle.Get(PolicyNamespace(POLICY_DOMAIN_EXTENSIONS,
325 "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")) 326 "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"))
326 .CopyFrom(expected_policy); 327 .CopyFrom(expected_policy);
327 expected_bundle.Get(PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, 328 expected_bundle.Get(PolicyNamespace(POLICY_DOMAIN_EXTENSIONS,
328 "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb")) 329 "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"))
329 .CopyFrom(expected_policy); 330 .CopyFrom(expected_policy);
330 EXPECT_TRUE(provider_->policies().Equals(expected_bundle)); 331 EXPECT_TRUE(provider_->policies().Equals(expected_bundle));
331 } 332 }
332 333
333 } // namespace policy 334 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698