OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/browser_thread.h" | |
7 #include "chrome/browser/policy/device_management_backend_mock.h" | 6 #include "chrome/browser/policy/device_management_backend_mock.h" |
8 #include "chrome/browser/policy/device_management_service.h" | 7 #include "chrome/browser/policy/device_management_service.h" |
9 #include "chrome/browser/policy/proto/device_management_constants.h" | 8 #include "chrome/browser/policy/proto/device_management_constants.h" |
10 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
11 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
12 #include "chrome/test/in_process_browser_test.h" | 11 #include "chrome/test/in_process_browser_test.h" |
13 #include "net/test/test_server.h" | 12 #include "net/test/test_server.h" |
14 #include "net/url_request/url_request.h" | 13 #include "net/url_request/url_request.h" |
15 #include "net/url_request/url_request_test_job.h" | 14 #include "net/url_request/url_request_test_job.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 EXPECT_CALL(delegate, HandleUnregisterResponse(_)) | 179 EXPECT_CALL(delegate, HandleUnregisterResponse(_)) |
181 .WillOnce(InvokeWithoutArgs(QuitMessageLoop)); | 180 .WillOnce(InvokeWithoutArgs(QuitMessageLoop)); |
182 em::DeviceUnregisterRequest request; | 181 em::DeviceUnregisterRequest request; |
183 backend->ProcessUnregisterRequest(token_, "testid", request, &delegate); | 182 backend->ProcessUnregisterRequest(token_, "testid", request, &delegate); |
184 | 183 |
185 MessageLoop::current()->Run(); | 184 MessageLoop::current()->Run(); |
186 } | 185 } |
187 } | 186 } |
188 | 187 |
189 } // namespace policy | 188 } // namespace policy |
OLD | NEW |