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

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

Issue 5162006: Always send the device ID when making device management requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 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/device_management_policy_provider_unittest.cc
diff --git a/chrome/browser/policy/device_management_policy_provider_unittest.cc b/chrome/browser/policy/device_management_policy_provider_unittest.cc
index bd27e48683303cf27c7586b1e473ab355384f0af..57172869e4fe0dc8f7bffea3fe5b0bf05b1f9c05 100644
--- a/chrome/browser/policy/device_management_policy_provider_unittest.cc
+++ b/chrome/browser/policy/device_management_policy_provider_unittest.cc
@@ -63,7 +63,7 @@ class DeviceManagementPolicyProviderTest : public testing::Test {
MockConfigurationPolicyStore store;
backend_->AllShouldSucceed();
EXPECT_CALL(*backend_, ProcessRegisterRequest(_, _, _, _)).Times(1);
- EXPECT_CALL(*backend_, ProcessPolicyRequest(_, _, _)).Times(1);
+ EXPECT_CALL(*backend_, ProcessPolicyRequest(_, _, _, _)).Times(1);
SimulateSuccessfulLoginAndRunPending();
EXPECT_CALL(store, Apply(kPolicyDisableSpdy, _)).Times(1);
provider_->Provide(&store);
@@ -113,7 +113,7 @@ TEST_F(DeviceManagementPolicyProviderTest, EmptyProvideWithFailedBackend) {
MockConfigurationPolicyStore store;
backend_->AllShouldFail();
EXPECT_CALL(*backend_, ProcessRegisterRequest(_, _, _, _)).Times(1);
- EXPECT_CALL(*backend_, ProcessPolicyRequest(_, _, _)).Times(0);
+ EXPECT_CALL(*backend_, ProcessPolicyRequest(_, _, _, _)).Times(0);
SimulateSuccessfulLoginAndRunPending();
EXPECT_CALL(store, Apply(kPolicyDisableSpdy, _)).Times(0);
provider_->Provide(&store);
@@ -129,7 +129,7 @@ TEST_F(DeviceManagementPolicyProviderTest, SecondProvide) {
// Simulate a app relaunch by constructing a new provider. Policy should be
// immediately provided and no refresh should be triggered.
CreateNewBackend();
- EXPECT_CALL(*backend_, ProcessPolicyRequest(_, _, _)).Times(0);
+ EXPECT_CALL(*backend_, ProcessPolicyRequest(_, _, _, _)).Times(0);
CreateNewProvider();
MockConfigurationPolicyStore store;
EXPECT_CALL(store, Apply(kPolicyDisableSpdy, _)).Times(1);

Powered by Google App Engine
This is Rietveld 408576698