| 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/device_cloud_policy_manager_chromeos.h" | 5 #include "chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 #include "chromeos/dbus/fake_session_manager_client.h" | 40 #include "chromeos/dbus/fake_session_manager_client.h" |
| 41 #include "chromeos/system/fake_statistics_provider.h" | 41 #include "chromeos/system/fake_statistics_provider.h" |
| 42 #include "chromeos/system/statistics_provider.h" | 42 #include "chromeos/system/statistics_provider.h" |
| 43 #include "components/policy/core/common/cloud/cloud_policy_client.h" | 43 #include "components/policy/core/common/cloud/cloud_policy_client.h" |
| 44 #include "components/policy/core/common/cloud/cloud_policy_constants.h" | 44 #include "components/policy/core/common/cloud/cloud_policy_constants.h" |
| 45 #include "components/policy/core/common/cloud/cloud_policy_core.h" | 45 #include "components/policy/core/common/cloud/cloud_policy_core.h" |
| 46 #include "components/policy/core/common/cloud/mock_device_management_service.h" | 46 #include "components/policy/core/common/cloud/mock_device_management_service.h" |
| 47 #include "components/policy/core/common/external_data_fetcher.h" | 47 #include "components/policy/core/common/external_data_fetcher.h" |
| 48 #include "components/policy/core/common/policy_types.h" | 48 #include "components/policy/core/common/policy_types.h" |
| 49 #include "components/policy/core/common/schema_registry.h" | 49 #include "components/policy/core/common/schema_registry.h" |
| 50 #include "components/policy/policy_constants.h" |
| 51 #include "components/policy/proto/device_management_backend.pb.h" |
| 50 #include "components/prefs/pref_registry_simple.h" | 52 #include "components/prefs/pref_registry_simple.h" |
| 51 #include "components/prefs/testing_pref_service.h" | 53 #include "components/prefs/testing_pref_service.h" |
| 52 #include "google_apis/gaia/gaia_oauth_client.h" | 54 #include "google_apis/gaia/gaia_oauth_client.h" |
| 53 #include "net/url_request/test_url_fetcher_factory.h" | 55 #include "net/url_request/test_url_fetcher_factory.h" |
| 54 #include "net/url_request/url_request_test_util.h" | 56 #include "net/url_request/url_request_test_util.h" |
| 55 #include "policy/policy_constants.h" | |
| 56 #include "policy/proto/device_management_backend.pb.h" | |
| 57 #include "testing/gmock/include/gmock/gmock.h" | 57 #include "testing/gmock/include/gmock/gmock.h" |
| 58 #include "testing/gtest/include/gtest/gtest.h" | 58 #include "testing/gtest/include/gtest/gtest.h" |
| 59 | 59 |
| 60 using testing::AnyNumber; | 60 using testing::AnyNumber; |
| 61 using testing::AtMost; | 61 using testing::AtMost; |
| 62 using testing::DoAll; | 62 using testing::DoAll; |
| 63 using testing::Mock; | 63 using testing::Mock; |
| 64 using testing::Return; | 64 using testing::Return; |
| 65 using testing::SaveArg; | 65 using testing::SaveArg; |
| 66 using testing::SetArgumentPointee; | 66 using testing::SetArgumentPointee; |
| (...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 718 | 718 |
| 719 TEST_F(DeviceCloudPolicyManagerChromeOSEnrollmentBlankSystemSaltTest, | 719 TEST_F(DeviceCloudPolicyManagerChromeOSEnrollmentBlankSystemSaltTest, |
| 720 RobotRefreshSaveFailed) { | 720 RobotRefreshSaveFailed) { |
| 721 // Without the system salt, the robot token can't be stored. | 721 // Without the system salt, the robot token can't be stored. |
| 722 RunTest(); | 722 RunTest(); |
| 723 ExpectFailedEnrollment(EnrollmentStatus::STATUS_ROBOT_REFRESH_STORE_FAILED); | 723 ExpectFailedEnrollment(EnrollmentStatus::STATUS_ROBOT_REFRESH_STORE_FAILED); |
| 724 } | 724 } |
| 725 | 725 |
| 726 } // namespace | 726 } // namespace |
| 727 } // namespace policy | 727 } // namespace policy |
| OLD | NEW |