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/test/base/testing_profile_manager.h" | 5 #include "chrome/test/base/testing_profile_manager.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
8 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| 11 #include "build/build_config.h" |
9 #include "chrome/browser/profiles/profile_info_cache.h" | 12 #include "chrome/browser/profiles/profile_info_cache.h" |
10 #include "chrome/browser/profiles/profile_manager.h" | 13 #include "chrome/browser/profiles/profile_manager.h" |
11 #include "chrome/common/chrome_constants.h" | 14 #include "chrome/common/chrome_constants.h" |
12 #include "chrome/test/base/testing_browser_process.h" | 15 #include "chrome/test/base/testing_browser_process.h" |
13 #include "components/syncable_prefs/pref_service_syncable.h" | 16 #include "components/syncable_prefs/pref_service_syncable.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
15 | 18 |
16 #if defined(OS_CHROMEOS) | 19 #if defined(OS_CHROMEOS) |
17 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 20 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
18 #endif | 21 #endif |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 // Set up the directory for profiles. | 241 // Set up the directory for profiles. |
239 ASSERT_TRUE(profiles_dir_.CreateUniqueTempDir()); | 242 ASSERT_TRUE(profiles_dir_.CreateUniqueTempDir()); |
240 | 243 |
241 profile_manager_ = new testing::ProfileManager(profiles_dir_.path()); | 244 profile_manager_ = new testing::ProfileManager(profiles_dir_.path()); |
242 browser_process_->SetProfileManager(profile_manager_); // Takes ownership. | 245 browser_process_->SetProfileManager(profile_manager_); // Takes ownership. |
243 | 246 |
244 profile_manager_->GetProfileInfoCache(). | 247 profile_manager_->GetProfileInfoCache(). |
245 set_disable_avatar_download_for_testing(true); | 248 set_disable_avatar_download_for_testing(true); |
246 called_set_up_ = true; | 249 called_set_up_ = true; |
247 } | 250 } |
OLD | NEW |