| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <stdint.h> | 5 #include <stdint.h> |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 ->SetOwnerKeyUtilForTesting(owner_key_util_); | 187 ->SetOwnerKeyUtilForTesting(owner_key_util_); |
| 188 owner_key_util_->SetPublicKeyFromPrivateKey( | 188 owner_key_util_->SetPublicKeyFromPrivateKey( |
| 189 *device_policy_.GetSigningKey()); | 189 *device_policy_.GetSigningKey()); |
| 190 fake_session_manager_client_->set_device_policy(device_policy_.GetBlob()); | 190 fake_session_manager_client_->set_device_policy(device_policy_.GetBlob()); |
| 191 DBusThreadManager::GetSetterForTesting()->SetSessionManagerClient( | 191 DBusThreadManager::GetSetterForTesting()->SetSessionManagerClient( |
| 192 std::unique_ptr<SessionManagerClient>(fake_session_manager_client_)); | 192 std::unique_ptr<SessionManagerClient>(fake_session_manager_client_)); |
| 193 | 193 |
| 194 // Set up fake install attributes. | 194 // Set up fake install attributes. |
| 195 std::unique_ptr<chromeos::StubInstallAttributes> attributes = | 195 std::unique_ptr<chromeos::StubInstallAttributes> attributes = |
| 196 base::MakeUnique<chromeos::StubInstallAttributes>(); | 196 base::MakeUnique<chromeos::StubInstallAttributes>(); |
| 197 attributes->SetEnterprise("fake-domain", "fake-id"); | 197 attributes->SetCloudManaged("fake-domain", "fake-id"); |
| 198 policy::BrowserPolicyConnectorChromeOS::SetInstallAttributesForTesting( | 198 policy::BrowserPolicyConnectorChromeOS::SetInstallAttributesForTesting( |
| 199 attributes.release()); | 199 attributes.release()); |
| 200 | 200 |
| 201 LoginManagerTest::SetUpInProcessBrowserTestFixture(); | 201 LoginManagerTest::SetUpInProcessBrowserTestFixture(); |
| 202 ASSERT_TRUE(PathService::Get(chrome::DIR_TEST_DATA, &test_data_dir_)); | 202 ASSERT_TRUE(PathService::Get(chrome::DIR_TEST_DATA, &test_data_dir_)); |
| 203 } | 203 } |
| 204 | 204 |
| 205 void SetUpCommandLine(base::CommandLine* command_line) override { | 205 void SetUpCommandLine(base::CommandLine* command_line) override { |
| 206 // Set the same switches as LoginManagerTest, except that kMultiProfiles is | 206 // Set the same switches as LoginManagerTest, except that kMultiProfiles is |
| 207 // only set when GetParam() is true and except that kLoginProfile is set | 207 // only set when GetParam() is true and except that kLoginProfile is set |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 | 437 |
| 438 IN_PROC_BROWSER_TEST_F(WallpaperManagerPolicyTest, PersistOverLogout) { | 438 IN_PROC_BROWSER_TEST_F(WallpaperManagerPolicyTest, PersistOverLogout) { |
| 439 LoginUser(testUsers_[0].GetUserEmail()); | 439 LoginUser(testUsers_[0].GetUserEmail()); |
| 440 | 440 |
| 441 // Wait until wallpaper has been loaded. | 441 // Wait until wallpaper has been loaded. |
| 442 RunUntilWallpaperChangeCount(1); | 442 RunUntilWallpaperChangeCount(1); |
| 443 ASSERT_EQ(kRedImageColor, GetAverageWallpaperColor()); | 443 ASSERT_EQ(kRedImageColor, GetAverageWallpaperColor()); |
| 444 } | 444 } |
| 445 | 445 |
| 446 } // namespace chromeos | 446 } // namespace chromeos |
| OLD | NEW |