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

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

Issue 9109009: Introduce CloudPolicyClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix clang build. Created 8 years, 12 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/policy/auto_enrollment_client_unittest.cc
diff --git a/chrome/browser/policy/auto_enrollment_client_unittest.cc b/chrome/browser/policy/auto_enrollment_client_unittest.cc
index 77a6235e5cc8ff9c0aa14fc55d50b8cf37f5959e..86cbf8b1f2081c277307f5aef51152b7306bb6e6 100644
--- a/chrome/browser/policy/auto_enrollment_client_unittest.cc
+++ b/chrome/browser/policy/auto_enrollment_client_unittest.cc
@@ -24,6 +24,7 @@ const char* kSerialHash =
using ::testing::InSequence;
using ::testing::Invoke;
+using ::testing::Unused;
using ::testing::_;
class AutoEnrollmentClientTest : public testing::Test {
@@ -40,7 +41,7 @@ class AutoEnrollmentClientTest : public testing::Test {
int power_initial,
int power_limit) {
service_ = new MockDeviceManagementService();
- EXPECT_CALL(*service_, StartJob(_))
+ EXPECT_CALL(*service_, StartJob(_, _, _, _, _, _, _))
.WillRepeatedly(Invoke(this,
&AutoEnrollmentClientTest::CaptureRequest));
base::Closure callback =
@@ -93,8 +94,9 @@ class AutoEnrollmentClientTest : public testing::Test {
int completion_callback_count_;
private:
- void CaptureRequest(DeviceManagementRequestJob* job) {
- last_request_ = job->GetRequest()->auto_enrollment_request();
+ void CaptureRequest(Unused, Unused, Unused, Unused, Unused, Unused,
+ const em::DeviceManagementRequest& request) {
+ last_request_ = request.auto_enrollment_request();
}
DISALLOW_COPY_AND_ASSIGN(AutoEnrollmentClientTest);
« no previous file with comments | « no previous file | chrome/browser/policy/cloud_policy_client.h » ('j') | chrome/browser/policy/cloud_policy_client.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698