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 "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h" | 5 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h" |
6 | 6 |
7 #include <cstdlib> | 7 #include <cstdlib> |
8 #include <cstring> | 8 #include <cstring> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
11 #include "ash/shell.h" | 11 #include "ash/shell.h" |
12 #include "ash/test/ash_test_base.h" | 12 #include "ash/test/ash_test_base.h" |
13 #include "ash/test/display_manager_test_api.h" | |
14 #include "base/command_line.h" | 13 #include "base/command_line.h" |
15 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
16 #include "base/files/file_util.h" | 15 #include "base/files/file_util.h" |
17 #include "base/files/scoped_temp_dir.h" | 16 #include "base/files/scoped_temp_dir.h" |
18 #include "chrome/browser/chromeos/login/startup_utils.h" | 17 #include "chrome/browser/chromeos/login/startup_utils.h" |
19 #include "chrome/browser/chromeos/login/users/fake_chrome_user_manager.h" | 18 #include "chrome/browser/chromeos/login/users/fake_chrome_user_manager.h" |
20 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" | 19 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" |
21 #include "chrome/browser/chromeos/settings/cros_settings.h" | 20 #include "chrome/browser/chromeos/settings/cros_settings.h" |
22 #include "chrome/browser/chromeos/settings/device_settings_service.h" | 21 #include "chrome/browser/chromeos/settings/device_settings_service.h" |
23 #include "chrome/browser/prefs/browser_prefs.h" | 22 #include "chrome/browser/prefs/browser_prefs.h" |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 fake_user_manager()->RemoveUserFromList(test_account_id_2); | 148 fake_user_manager()->RemoveUserFromList(test_account_id_2); |
150 | 149 |
151 // Test that only user1's wallpaper can be found in cache. | 150 // Test that only user1's wallpaper can be found in cache. |
152 EXPECT_TRUE( | 151 EXPECT_TRUE( |
153 test_api->GetWallpaperFromCache(test_account_id_1, &cached_wallpaper)); | 152 test_api->GetWallpaperFromCache(test_account_id_1, &cached_wallpaper)); |
154 EXPECT_FALSE( | 153 EXPECT_FALSE( |
155 test_api->GetWallpaperFromCache(test_account_id_2, &cached_wallpaper)); | 154 test_api->GetWallpaperFromCache(test_account_id_2, &cached_wallpaper)); |
156 } | 155 } |
157 | 156 |
158 } // namespace chromeos | 157 } // namespace chromeos |
OLD | NEW |