Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Side by Side Diff: chrome/browser/profiles/profile_info_cache_unittest.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/profiles/profile_info_cache_unittest.h" 5 #include "chrome/browser/profiles/profile_info_cache_unittest.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/command_line.h" 12 #include "base/command_line.h"
13 #include "base/files/file_util.h" 13 #include "base/files/file_util.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/prefs/testing_pref_service.h"
16 #include "base/strings/stringprintf.h" 15 #include "base/strings/stringprintf.h"
17 #include "base/strings/utf_string_conversions.h" 16 #include "base/strings/utf_string_conversions.h"
18 #include "base/time/time.h" 17 #include "base/time/time.h"
19 #include "build/build_config.h" 18 #include "build/build_config.h"
20 #include "chrome/browser/browser_process.h" 19 #include "chrome/browser/browser_process.h"
21 #include "chrome/browser/profiles/profile_avatar_downloader.h" 20 #include "chrome/browser/profiles/profile_avatar_downloader.h"
22 #include "chrome/browser/profiles/profile_avatar_icon_util.h" 21 #include "chrome/browser/profiles/profile_avatar_icon_util.h"
23 #include "chrome/browser/profiles/profile_info_cache.h" 22 #include "chrome/browser/profiles/profile_info_cache.h"
24 #include "chrome/browser/profiles/profile_manager.h" 23 #include "chrome/browser/profiles/profile_manager.h"
25 #include "chrome/common/chrome_paths.h" 24 #include "chrome/common/chrome_paths.h"
26 #include "chrome/common/chrome_switches.h" 25 #include "chrome/common/chrome_switches.h"
27 #include "chrome/common/pref_names.h" 26 #include "chrome/common/pref_names.h"
28 #include "chrome/test/base/testing_browser_process.h" 27 #include "chrome/test/base/testing_browser_process.h"
28 #include "components/prefs/testing_pref_service.h"
29 #include "components/signin/core/common/profile_management_switches.h" 29 #include "components/signin/core/common/profile_management_switches.h"
30 #include "components/syncable_prefs/pref_service_syncable.h" 30 #include "components/syncable_prefs/pref_service_syncable.h"
31 #include "content/public/test/test_browser_thread_bundle.h" 31 #include "content/public/test/test_browser_thread_bundle.h"
32 #include "content/public/test/test_utils.h" 32 #include "content/public/test/test_utils.h"
33 #include "third_party/skia/include/core/SkBitmap.h" 33 #include "third_party/skia/include/core/SkBitmap.h"
34 #include "ui/base/resource/resource_bundle.h" 34 #include "ui/base/resource/resource_bundle.h"
35 #include "ui/gfx/image/image.h" 35 #include "ui/gfx/image/image.h"
36 #include "ui/gfx/image/image_unittest_util.h" 36 #include "ui/gfx/image/image_unittest_util.h"
37 37
38 using base::ASCIIToUTF16; 38 using base::ASCIIToUTF16;
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after
723 EXPECT_EQ(name_1, GetCache()->GetNameOfProfileAtIndex( 723 EXPECT_EQ(name_1, GetCache()->GetNameOfProfileAtIndex(
724 GetCache()->GetIndexOfProfileWithPath(path_1))); 724 GetCache()->GetIndexOfProfileWithPath(path_1)));
725 EXPECT_EQ(name_2, GetCache()->GetNameOfProfileAtIndex( 725 EXPECT_EQ(name_2, GetCache()->GetNameOfProfileAtIndex(
726 GetCache()->GetIndexOfProfileWithPath(path_2))); 726 GetCache()->GetIndexOfProfileWithPath(path_2)));
727 EXPECT_EQ(name_3, GetCache()->GetNameOfProfileAtIndex( 727 EXPECT_EQ(name_3, GetCache()->GetNameOfProfileAtIndex(
728 GetCache()->GetIndexOfProfileWithPath(path_3))); 728 GetCache()->GetIndexOfProfileWithPath(path_3)));
729 EXPECT_EQ(name_4, GetCache()->GetNameOfProfileAtIndex( 729 EXPECT_EQ(name_4, GetCache()->GetNameOfProfileAtIndex(
730 GetCache()->GetIndexOfProfileWithPath(path_4))); 730 GetCache()->GetIndexOfProfileWithPath(path_4)));
731 } 731 }
732 #endif 732 #endif
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_info_cache.cc ('k') | chrome/browser/profiles/profile_io_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698