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

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

Issue 7941008: Cosmetic cleanups in chrome/browser/policy/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Upload was broken? Created 9 years, 3 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/asynchronous_policy_loader.h" 5 #include "chrome/browser/policy/asynchronous_policy_loader.h"
6 #include "chrome/browser/policy/asynchronous_policy_provider.h" 6 #include "chrome/browser/policy/asynchronous_policy_provider.h"
7 #include "chrome/browser/policy/asynchronous_policy_test_base.h" 7 #include "chrome/browser/policy/asynchronous_policy_test_base.h"
8 #include "chrome/browser/policy/configuration_policy_pref_store.h" 8 #include "chrome/browser/policy/configuration_policy_pref_store.h"
9 #include "chrome/browser/policy/policy_map.h"
9 #include "policy/policy_constants.h" 10 #include "policy/policy_constants.h"
10 #include "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
11 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
12 13
13 using ::testing::_; 14 using ::testing::_;
14 using ::testing::InSequence; 15 using ::testing::InSequence;
15 using ::testing::Return; 16 using ::testing::Return;
16 17
17 namespace policy { 18 namespace policy {
18 19
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 loader); 51 loader);
51 loop_.RunAllPending(); 52 loop_.RunAllPending();
52 loader->Reload(); 53 loader->Reload();
53 PolicyMap policy_map; 54 PolicyMap policy_map;
54 provider.Provide(&policy_map); 55 provider.Provide(&policy_map);
55 EXPECT_TRUE(policy_map.Get(policy::kPolicySyncDisabled)); 56 EXPECT_TRUE(policy_map.Get(policy::kPolicySyncDisabled));
56 EXPECT_EQ(1U, policy_map.size()); 57 EXPECT_EQ(1U, policy_map.size());
57 } 58 }
58 59
59 } // namespace policy 60 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/asynchronous_policy_provider.h ('k') | chrome/browser/policy/asynchronous_policy_test_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698