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

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

Issue 6413036: Another big out-of-lining of test code. Hits a lot of gmock objects (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: lei comments Created 9 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/policy/asynchronous_policy_test_base.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/mock_configuration_policy_provider.h" 8 #include "chrome/browser/policy/mock_configuration_policy_provider.h"
9 #include "chrome/browser/policy/mock_configuration_policy_store.h"
9 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
10 11
11 using ::testing::_; 12 using ::testing::_;
12 using ::testing::InSequence; 13 using ::testing::InSequence;
13 using ::testing::Return; 14 using ::testing::Return;
14 15
15 namespace policy { 16 namespace policy {
16 17
17 class MockConfigurationPolicyObserver 18 class MockConfigurationPolicyObserver
18 : public ConfigurationPolicyProvider::Observer { 19 : public ConfigurationPolicyProvider::Observer {
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 loop_.RunAllPending(); 126 loop_.RunAllPending();
126 loader->Reload(); 127 loader->Reload();
127 loop_.RunAllPending(); 128 loop_.RunAllPending();
128 loader->Reload(); 129 loader->Reload();
129 loop_.RunAllPending(); 130 loop_.RunAllPending();
130 loader->Reload(); 131 loader->Reload();
131 loop_.RunAllPending(); 132 loop_.RunAllPending();
132 } 133 }
133 134
134 } // namespace policy 135 } // namespace policy
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/policy/asynchronous_policy_test_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698