| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "base/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
| 7 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
| 8 #include "build/build_config.h" |
| 8 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 9 #include "chrome/browser/policy/cloud/test_request_interceptor.h" | 10 #include "chrome/browser/policy/cloud/test_request_interceptor.h" |
| 10 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
| 11 #include "chrome/browser/ui/browser.h" | 12 #include "chrome/browser/ui/browser.h" |
| 12 #include "chrome/test/base/in_process_browser_test.h" | 13 #include "chrome/test/base/in_process_browser_test.h" |
| 13 #include "components/policy/core/browser/browser_policy_connector.h" | 14 #include "components/policy/core/browser/browser_policy_connector.h" |
| 14 #include "components/policy/core/common/cloud/cloud_policy_client.h" | 15 #include "components/policy/core/common/cloud/cloud_policy_client.h" |
| 15 #include "components/policy/core/common/cloud/mock_cloud_policy_client.h" | 16 #include "components/policy/core/common/cloud/mock_cloud_policy_client.h" |
| 16 #include "components/policy/core/common/policy_switches.h" | 17 #include "components/policy/core/common/policy_switches.h" |
| 17 #include "components/policy/core/common/policy_test_utils.h" | 18 #include "components/policy/core/common/policy_test_utils.h" |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 const bool expect_reregister = true; | 194 const bool expect_reregister = true; |
| 194 interceptor_->PushJobCallback( | 195 interceptor_->PushJobCallback( |
| 195 TestRequestInterceptor::RegisterJob(expected_type, expect_reregister)); | 196 TestRequestInterceptor::RegisterJob(expected_type, expect_reregister)); |
| 196 | 197 |
| 197 EXPECT_FALSE(policy_manager()->core()->client()->is_registered()); | 198 EXPECT_FALSE(policy_manager()->core()->client()->is_registered()); |
| 198 ASSERT_NO_FATAL_FAILURE(Register()); | 199 ASSERT_NO_FATAL_FAILURE(Register()); |
| 199 EXPECT_TRUE(policy_manager()->core()->client()->is_registered()); | 200 EXPECT_TRUE(policy_manager()->core()->client()->is_registered()); |
| 200 } | 201 } |
| 201 | 202 |
| 202 } // namespace policy | 203 } // namespace policy |
| OLD | NEW |