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

Unified Diff: chrome/browser/policy/asynchronous_policy_loader_unittest.cc

Issue 8586030: Added ConfigurationPolicyProvider::RefreshPolicies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/policy/asynchronous_policy_loader_unittest.cc
diff --git a/chrome/browser/policy/asynchronous_policy_loader_unittest.cc b/chrome/browser/policy/asynchronous_policy_loader_unittest.cc
index 3280b4786d75129ef94c720119ae6ac0b9bba46c..f60e06b6afc1342aab85f684abfbc07fff09bc48 100644
--- a/chrome/browser/policy/asynchronous_policy_loader_unittest.cc
+++ b/chrome/browser/policy/asynchronous_policy_loader_unittest.cc
@@ -24,13 +24,6 @@ void IgnoreCallback() {
} // namespace
-class MockConfigurationPolicyObserver
- : public ConfigurationPolicyProvider::Observer {
- public:
- MOCK_METHOD0(OnUpdatePolicy, void());
- void OnProviderGoingAway() {}
-};
-
class AsynchronousPolicyLoaderTest : public AsynchronousPolicyTestBase {
public:
AsynchronousPolicyLoaderTest() {}
@@ -135,16 +128,16 @@ TEST_F(AsynchronousPolicyLoaderTest, ProviderNotificationOnPolicyChange) {
EXPECT_CALL(*delegate, Load()).WillOnce(
CreateSequencedTestDictionary(&dictionary_number_2));
- EXPECT_CALL(observer, OnUpdatePolicy()).Times(1);
- loader->Reload(true);
+ EXPECT_CALL(observer, OnUpdatePolicy(_)).Times(1);
+ provider.RefreshPolicies();
loop_.RunAllPending();
Mock::VerifyAndClearExpectations(delegate);
Mock::VerifyAndClearExpectations(&observer);
EXPECT_CALL(*delegate, Load()).WillOnce(
CreateSequencedTestDictionary(&dictionary_number_1));
- EXPECT_CALL(observer, OnUpdatePolicy()).Times(1);
- loader->Reload(true);
+ EXPECT_CALL(observer, OnUpdatePolicy(_)).Times(1);
+ provider.RefreshPolicies();
loop_.RunAllPending();
Mock::VerifyAndClearExpectations(delegate);
Mock::VerifyAndClearExpectations(&observer);
« no previous file with comments | « chrome/browser/chromeos/login/login_utils_browsertest.cc ('k') | chrome/browser/policy/asynchronous_policy_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698