| 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/profiles/profile_info_cache_unittest.h" | 5 #include "chrome/browser/profiles/profile_info_cache_unittest.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
| 11 #include "base/prefs/testing_pref_service.h" | 11 #include "base/prefs/testing_pref_service.h" |
| 12 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
| 13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
| 15 #include "chrome/browser/browser_process.h" | 15 #include "chrome/browser/browser_process.h" |
| 16 #include "chrome/browser/prefs/pref_service_syncable.h" | |
| 17 #include "chrome/browser/profiles/profile_avatar_downloader.h" | 16 #include "chrome/browser/profiles/profile_avatar_downloader.h" |
| 18 #include "chrome/browser/profiles/profile_avatar_icon_util.h" | 17 #include "chrome/browser/profiles/profile_avatar_icon_util.h" |
| 19 #include "chrome/browser/profiles/profile_info_cache.h" | 18 #include "chrome/browser/profiles/profile_info_cache.h" |
| 20 #include "chrome/browser/profiles/profile_manager.h" | 19 #include "chrome/browser/profiles/profile_manager.h" |
| 21 #include "chrome/common/chrome_paths.h" | 20 #include "chrome/common/chrome_paths.h" |
| 22 #include "chrome/common/chrome_switches.h" | 21 #include "chrome/common/chrome_switches.h" |
| 23 #include "chrome/common/pref_names.h" | 22 #include "chrome/common/pref_names.h" |
| 24 #include "chrome/test/base/testing_browser_process.h" | 23 #include "chrome/test/base/testing_browser_process.h" |
| 25 #include "components/signin/core/common/profile_management_switches.h" | 24 #include "components/signin/core/common/profile_management_switches.h" |
| 25 #include "components/syncable_prefs/pref_service_syncable.h" |
| 26 #include "content/public/test/test_browser_thread_bundle.h" | 26 #include "content/public/test/test_browser_thread_bundle.h" |
| 27 #include "content/public/test/test_utils.h" | 27 #include "content/public/test/test_utils.h" |
| 28 #include "third_party/skia/include/core/SkBitmap.h" | 28 #include "third_party/skia/include/core/SkBitmap.h" |
| 29 #include "ui/base/resource/resource_bundle.h" | 29 #include "ui/base/resource/resource_bundle.h" |
| 30 #include "ui/gfx/image/image.h" | 30 #include "ui/gfx/image/image.h" |
| 31 #include "ui/gfx/image/image_unittest_util.h" | 31 #include "ui/gfx/image/image_unittest_util.h" |
| 32 | 32 |
| 33 using base::ASCIIToUTF16; | 33 using base::ASCIIToUTF16; |
| 34 using base::UTF8ToUTF16; | 34 using base::UTF8ToUTF16; |
| 35 using content::BrowserThread; | 35 using content::BrowserThread; |
| (...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 727 // Profile names should have been preserved. | 727 // Profile names should have been preserved. |
| 728 EXPECT_EQ(name_1, GetCache()->GetNameOfProfileAtIndex( | 728 EXPECT_EQ(name_1, GetCache()->GetNameOfProfileAtIndex( |
| 729 GetCache()->GetIndexOfProfileWithPath(path_1))); | 729 GetCache()->GetIndexOfProfileWithPath(path_1))); |
| 730 EXPECT_EQ(name_2, GetCache()->GetNameOfProfileAtIndex( | 730 EXPECT_EQ(name_2, GetCache()->GetNameOfProfileAtIndex( |
| 731 GetCache()->GetIndexOfProfileWithPath(path_2))); | 731 GetCache()->GetIndexOfProfileWithPath(path_2))); |
| 732 EXPECT_EQ(name_3, GetCache()->GetNameOfProfileAtIndex( | 732 EXPECT_EQ(name_3, GetCache()->GetNameOfProfileAtIndex( |
| 733 GetCache()->GetIndexOfProfileWithPath(path_3))); | 733 GetCache()->GetIndexOfProfileWithPath(path_3))); |
| 734 EXPECT_EQ(name_4, GetCache()->GetNameOfProfileAtIndex( | 734 EXPECT_EQ(name_4, GetCache()->GetNameOfProfileAtIndex( |
| 735 GetCache()->GetIndexOfProfileWithPath(path_4))); | 735 GetCache()->GetIndexOfProfileWithPath(path_4))); |
| 736 } | 736 } |
| OLD | NEW |