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 "chrome/browser/chromeos/policy/auto_enrollment_client.h" | 5 #include "chrome/browser/chromeos/policy/auto_enrollment_client.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
11 #include "base/prefs/testing_pref_service.h" | 11 #include "base/prefs/testing_pref_service.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
14 #include "chrome/browser/policy/cloud/mock_device_management_service.h" | |
15 #include "chrome/common/pref_names.h" | 14 #include "chrome/common/pref_names.h" |
16 #include "chrome/test/base/scoped_testing_local_state.h" | 15 #include "chrome/test/base/scoped_testing_local_state.h" |
17 #include "chrome/test/base/testing_browser_process.h" | 16 #include "chrome/test/base/testing_browser_process.h" |
| 17 #include "components/policy/core/common/cloud/mock_device_management_service.h" |
18 #include "content/public/test/test_browser_thread_bundle.h" | 18 #include "content/public/test/test_browser_thread_bundle.h" |
19 #include "crypto/sha2.h" | 19 #include "crypto/sha2.h" |
20 #include "net/url_request/url_request_context_getter.h" | 20 #include "net/url_request/url_request_context_getter.h" |
21 #include "net/url_request/url_request_test_util.h" | 21 #include "net/url_request/url_request_test_util.h" |
22 #include "testing/gmock/include/gmock/gmock.h" | 22 #include "testing/gmock/include/gmock/gmock.h" |
23 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
24 | 24 |
25 namespace em = enterprise_management; | 25 namespace em = enterprise_management; |
26 | 26 |
27 namespace policy { | 27 namespace policy { |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 // The client will delete itself immediately if there are no pending | 448 // The client will delete itself immediately if there are no pending |
449 // requests. | 449 // requests. |
450 EXPECT_TRUE(base::MessageLoop::current()->IsIdleForTesting()); | 450 EXPECT_TRUE(base::MessageLoop::current()->IsIdleForTesting()); |
451 client_.release()->CancelAndDeleteSoon(); | 451 client_.release()->CancelAndDeleteSoon(); |
452 EXPECT_TRUE(base::MessageLoop::current()->IsIdleForTesting()); | 452 EXPECT_TRUE(base::MessageLoop::current()->IsIdleForTesting()); |
453 } | 453 } |
454 | 454 |
455 } // namespace | 455 } // namespace |
456 | 456 |
457 } // namespace policy | 457 } // namespace policy |
OLD | NEW |