| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/message_loop.h" | 5 #include "base/message_loop.h" |
| 6 #include "chrome/browser/policy/device_management_backend_mock.h" | 6 #include "chrome/browser/policy/device_management_backend_mock.h" |
| 7 #include "chrome/browser/policy/device_management_service.h" | 7 #include "chrome/browser/policy/device_management_service.h" |
| 8 #include "chrome/browser/policy/proto/device_management_constants.h" | 8 #include "chrome/browser/policy/proto/device_management_constants.h" |
| 9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 10 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
| 11 #include "chrome/test/base/in_process_browser_test.h" | 11 #include "chrome/test/base/in_process_browser_test.h" |
| 12 #include "content/common/net/url_fetcher.h" |
| 12 #include "net/test/test_server.h" | 13 #include "net/test/test_server.h" |
| 13 #include "net/url_request/url_request.h" | 14 #include "net/url_request/url_request.h" |
| 14 #include "net/url_request/url_request_test_job.h" | 15 #include "net/url_request/url_request_test_job.h" |
| 15 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 17 | 18 |
| 18 using testing::DoAll; | 19 using testing::DoAll; |
| 19 using testing::Invoke; | 20 using testing::Invoke; |
| 20 using testing::InvokeWithoutArgs; | 21 using testing::InvokeWithoutArgs; |
| 21 using testing::_; | 22 using testing::_; |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 EXPECT_CALL(delegate, HandleUnregisterResponse(_)) | 185 EXPECT_CALL(delegate, HandleUnregisterResponse(_)) |
| 185 .WillOnce(InvokeWithoutArgs(QuitMessageLoop)); | 186 .WillOnce(InvokeWithoutArgs(QuitMessageLoop)); |
| 186 em::DeviceUnregisterRequest request; | 187 em::DeviceUnregisterRequest request; |
| 187 backend->ProcessUnregisterRequest(token_, "testid", request, &delegate); | 188 backend->ProcessUnregisterRequest(token_, "testid", request, &delegate); |
| 188 | 189 |
| 189 MessageLoop::current()->Run(); | 190 MessageLoop::current()->Run(); |
| 190 } | 191 } |
| 191 } | 192 } |
| 192 | 193 |
| 193 } // namespace policy | 194 } // namespace policy |
| OLD | NEW |