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

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

Issue 6091002: Refactor the windows policy provider to use AsynchronousPolicyProvider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix windows tests Created 10 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 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 499543158bec88377a608bd479ca68dd418c2829..1fc1ee5ca8b3c91046b65bfce35b3f9b11beb608 100644
--- a/chrome/browser/policy/asynchronous_policy_loader_unittest.cc
+++ b/chrome/browser/policy/asynchronous_policy_loader_unittest.cc
@@ -53,7 +53,7 @@ TEST_F(AsynchronousPolicyLoaderTest, InitialLoad) {
DictionaryValue* template_dict(new DictionaryValue());
EXPECT_CALL(*delegate_, Load()).WillOnce(Return(template_dict));
scoped_refptr<AsynchronousPolicyLoader> loader =
- new AsynchronousPolicyLoader(delegate_.release());
+ new AsynchronousPolicyLoader(delegate_.release(), 10);
loader->Init();
const DictionaryValue* loaded_dict(loader->policy());
EXPECT_TRUE(loaded_dict->Equals(template_dict));
@@ -68,7 +68,7 @@ TEST_F(AsynchronousPolicyLoaderTest, InitialLoadWithFallback) {
EXPECT_CALL(*delegate_, Load()).WillOnce(
CreateSequencedTestDictionary(&dictionary_number));
scoped_refptr<AsynchronousPolicyLoader> loader =
- new AsynchronousPolicyLoader(delegate_.release());
+ new AsynchronousPolicyLoader(delegate_.release(), 10);
loader->Init();
loop_.RunAllPending();
loader->Reload();
@@ -86,7 +86,7 @@ TEST_F(AsynchronousPolicyLoaderTest, Stop) {
ON_CALL(*delegate_, Load()).WillByDefault(CreateTestDictionary());
EXPECT_CALL(*delegate_, Load()).Times(1);
scoped_refptr<AsynchronousPolicyLoader> loader =
- new AsynchronousPolicyLoader(delegate_.release());
+ new AsynchronousPolicyLoader(delegate_.release(), 10);
loader->Init();
loop_.RunAllPending();
loader->Stop();
@@ -118,7 +118,7 @@ TEST_F(AsynchronousPolicyLoaderTest, ProviderNotificationOnPolicyChange) {
EXPECT_CALL(*delegate_, Load()).WillOnce(
CreateSequencedTestDictionary(&dictionary_number_1));
scoped_refptr<AsynchronousPolicyLoader> loader =
- new AsynchronousPolicyLoader(delegate_.release());
+ new AsynchronousPolicyLoader(delegate_.release(), 10);
AsynchronousPolicyProvider provider(NULL, loader);
loop_.RunAllPending();
loader->Reload();
« no previous file with comments | « chrome/browser/policy/asynchronous_policy_loader.cc ('k') | chrome/browser/policy/asynchronous_policy_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698