OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/bind.h" | 5 #include "base/bind.h" |
6 #include "base/bind_helpers.h" | 6 #include "base/bind_helpers.h" |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
11 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" | |
12 #include "chrome/browser/policy/cloud/device_management_service.h" | |
13 #include "chrome/browser/policy/cloud/mock_device_management_service.h" | |
14 #include "chrome/browser/policy/cloud/test_request_interceptor.h" | 11 #include "chrome/browser/policy/cloud/test_request_interceptor.h" |
15 #include "chrome/browser/policy/test/local_policy_test_server.h" | 12 #include "chrome/browser/policy/test/local_policy_test_server.h" |
16 #include "chrome/test/base/in_process_browser_test.h" | 13 #include "chrome/test/base/in_process_browser_test.h" |
| 14 #include "components/policy/core/common/cloud/cloud_policy_constants.h" |
| 15 #include "components/policy/core/common/cloud/device_management_service.h" |
| 16 #include "components/policy/core/common/cloud/mock_device_management_service.h" |
17 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
18 #include "net/base/upload_bytes_element_reader.h" | 18 #include "net/base/upload_bytes_element_reader.h" |
19 #include "net/base/upload_data_stream.h" | 19 #include "net/base/upload_data_stream.h" |
20 #include "net/url_request/url_fetcher.h" | 20 #include "net/url_request/url_fetcher.h" |
21 #include "net/url_request/url_request.h" | 21 #include "net/url_request/url_request.h" |
22 #include "net/url_request/url_request_context_getter.h" | 22 #include "net/url_request/url_request_context_getter.h" |
23 #include "net/url_request/url_request_test_job.h" | 23 #include "net/url_request/url_request_test_job.h" |
24 #include "testing/gmock/include/gmock/gmock.h" | 24 #include "testing/gmock/include/gmock/gmock.h" |
25 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" |
26 | 26 |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 base::MessageLoop::current()->Run(); | 260 base::MessageLoop::current()->Run(); |
261 } | 261 } |
262 | 262 |
263 INSTANTIATE_TEST_CASE_P( | 263 INSTANTIATE_TEST_CASE_P( |
264 DeviceManagementServiceIntegrationTestInstance, | 264 DeviceManagementServiceIntegrationTestInstance, |
265 DeviceManagementServiceIntegrationTest, | 265 DeviceManagementServiceIntegrationTest, |
266 testing::Values(&DeviceManagementServiceIntegrationTest::InitCannedResponse, | 266 testing::Values(&DeviceManagementServiceIntegrationTest::InitCannedResponse, |
267 &DeviceManagementServiceIntegrationTest::InitTestServer)); | 267 &DeviceManagementServiceIntegrationTest::InitTestServer)); |
268 | 268 |
269 } // namespace policy | 269 } // namespace policy |
OLD | NEW |