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

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

Issue 6880031: Merge server-side changes of the cloud policy protocol (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 9 years, 8 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/device_management_service_unittest.cc
diff --git a/chrome/browser/policy/device_management_service_unittest.cc b/chrome/browser/policy/device_management_service_unittest.cc
index 00a6f17a90674e29fa804d4d1ade996b9751cd4a..51a30653b4aa7708bab5f656f532398255f34814 100644
--- a/chrome/browser/policy/device_management_service_unittest.cc
+++ b/chrome/browser/policy/device_management_service_unittest.cc
@@ -309,7 +309,6 @@ TEST_F(DeviceManagementServiceTest, RegisterRequest) {
// Generate the response.
std::string response_data;
em::DeviceManagementResponse response_wrapper;
- response_wrapper.set_error(em::DeviceManagementResponse::SUCCESS);
response_wrapper.mutable_register_response()->CopyFrom(expected_response);
ASSERT_TRUE(response_wrapper.SerializeToString(&response_data));
net::URLRequestStatus status(net::URLRequestStatus::SUCCESS, 0);
@@ -352,7 +351,6 @@ TEST_F(DeviceManagementServiceTest, UnregisterRequest) {
// Generate the response.
std::string response_data;
em::DeviceManagementResponse response_wrapper;
- response_wrapper.set_error(em::DeviceManagementResponse::SUCCESS);
response_wrapper.mutable_unregister_response()->CopyFrom(expected_response);
ASSERT_TRUE(response_wrapper.SerializeToString(&response_data));
net::URLRequestStatus status(net::URLRequestStatus::SUCCESS, 0);
@@ -428,7 +426,6 @@ TEST_F(DeviceManagementServiceTest, JobQueueing) {
// Check that the request is processed as expected.
std::string response_data;
em::DeviceManagementResponse response_wrapper;
- response_wrapper.set_error(em::DeviceManagementResponse::SUCCESS);
response_wrapper.mutable_register_response()->CopyFrom(expected_response);
ASSERT_TRUE(response_wrapper.SerializeToString(&response_data));
net::URLRequestStatus status(net::URLRequestStatus::SUCCESS, 0);
« no previous file with comments | « chrome/browser/policy/device_management_backend_impl.cc ('k') | chrome/browser/policy/proto/device_management_backend.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698