| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "chrome/browser/chromeos/policy/affiliation_test_helper.h" | 4 #include "chrome/browser/chromeos/policy/affiliation_test_helper.h" |
| 5 | 5 |
| 6 #include <stdint.h> | 6 #include <stdint.h> |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/path_service.h" | 13 #include "base/path_service.h" |
| 14 #include "base/prefs/pref_service.h" | |
| 15 #include "base/prefs/scoped_user_pref_update.h" | |
| 16 #include "chrome/browser/browser_process.h" | 14 #include "chrome/browser/browser_process.h" |
| 17 #include "chrome/browser/chrome_notification_types.h" | 15 #include "chrome/browser/chrome_notification_types.h" |
| 18 #include "chrome/browser/chromeos/login/existing_user_controller.h" | 16 #include "chrome/browser/chromeos/login/existing_user_controller.h" |
| 19 #include "chrome/browser/chromeos/login/session/user_session_manager_test_api.h" | 17 #include "chrome/browser/chromeos/login/session/user_session_manager_test_api.h" |
| 20 #include "chrome/browser/chromeos/login/startup_utils.h" | 18 #include "chrome/browser/chromeos/login/startup_utils.h" |
| 21 #include "chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos.h" | 19 #include "chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos.h" |
| 22 #include "chrome/browser/chromeos/policy/device_policy_builder.h" | 20 #include "chrome/browser/chromeos/policy/device_policy_builder.h" |
| 23 #include "chrome/browser/chromeos/policy/device_policy_cros_browser_test.h" | 21 #include "chrome/browser/chromeos/policy/device_policy_cros_browser_test.h" |
| 24 #include "chromeos/chromeos_paths.h" | 22 #include "chromeos/chromeos_paths.h" |
| 25 #include "chromeos/chromeos_switches.h" | 23 #include "chromeos/chromeos_switches.h" |
| 26 #include "chromeos/dbus/cryptohome_client.h" | 24 #include "chromeos/dbus/cryptohome_client.h" |
| 27 #include "chromeos/dbus/fake_session_manager_client.h" | 25 #include "chromeos/dbus/fake_session_manager_client.h" |
| 28 #include "chromeos/dbus/session_manager_client.h" | 26 #include "chromeos/dbus/session_manager_client.h" |
| 29 #include "chromeos/login/auth/key.h" | 27 #include "chromeos/login/auth/key.h" |
| 30 #include "chromeos/login/auth/user_context.h" | 28 #include "chromeos/login/auth/user_context.h" |
| 31 #include "components/policy/core/common/cloud/cloud_policy_core.h" | 29 #include "components/policy/core/common/cloud/cloud_policy_core.h" |
| 32 #include "components/policy/core/common/cloud/cloud_policy_store.h" | 30 #include "components/policy/core/common/cloud/cloud_policy_store.h" |
| 33 #include "components/policy/core/common/cloud/policy_builder.h" | 31 #include "components/policy/core/common/cloud/policy_builder.h" |
| 32 #include "components/prefs/pref_service.h" |
| 33 #include "components/prefs/scoped_user_pref_update.h" |
| 34 #include "content/public/browser/notification_service.h" | 34 #include "content/public/browser/notification_service.h" |
| 35 #include "content/public/test/test_utils.h" | 35 #include "content/public/test/test_utils.h" |
| 36 #include "crypto/rsa_private_key.h" | 36 #include "crypto/rsa_private_key.h" |
| 37 #include "testing/gtest/include/gtest/gtest.h" | 37 #include "testing/gtest/include/gtest/gtest.h" |
| 38 | 38 |
| 39 namespace policy { | 39 namespace policy { |
| 40 | 40 |
| 41 namespace affiliation_test_helper { | 41 namespace affiliation_test_helper { |
| 42 | 42 |
| 43 const char kFakeRefreshToken[] = "fake-refresh-token"; | 43 const char kFakeRefreshToken[] = "fake-refresh-token"; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 } | 131 } |
| 132 | 132 |
| 133 void AppendCommandLineSwitchesForLoginManager(base::CommandLine* command_line) { | 133 void AppendCommandLineSwitchesForLoginManager(base::CommandLine* command_line) { |
| 134 command_line->AppendSwitch(chromeos::switches::kLoginManager); | 134 command_line->AppendSwitch(chromeos::switches::kLoginManager); |
| 135 command_line->AppendSwitch(chromeos::switches::kForceLoginManagerInTests); | 135 command_line->AppendSwitch(chromeos::switches::kForceLoginManagerInTests); |
| 136 } | 136 } |
| 137 | 137 |
| 138 } // namespace affiliation_test_helper | 138 } // namespace affiliation_test_helper |
| 139 | 139 |
| 140 } // namespace policy | 140 } // namespace policy |
| OLD | NEW |