OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_UNITTEST_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_UNITTEST_H_ |
6 #define CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_UNITTEST_H_ | 6 #define CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_UNITTEST_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
| 10 #include "base/test/scoped_path_override.h" |
10 #include "chrome/browser/profiles/profile_info_cache_observer.h" | 11 #include "chrome/browser/profiles/profile_info_cache_observer.h" |
11 #include "chrome/test/base/testing_profile_manager.h" | 12 #include "chrome/test/base/testing_profile_manager.h" |
12 #include "content/public/test/test_browser_thread_bundle.h" | 13 #include "content/public/test/test_browser_thread_bundle.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
14 | 15 |
15 class ProfileInfoCache; | 16 class ProfileInfoCache; |
16 | 17 |
17 namespace base { | 18 namespace base { |
18 class FilePath; | 19 class FilePath; |
19 } | 20 } |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 ProfileInfoCache* GetCache(); | 54 ProfileInfoCache* GetCache(); |
54 base::FilePath GetProfilePath(const std::string& base_name); | 55 base::FilePath GetProfilePath(const std::string& base_name); |
55 void ResetCache(); | 56 void ResetCache(); |
56 | 57 |
57 protected: | 58 protected: |
58 TestingProfileManager testing_profile_manager_; | 59 TestingProfileManager testing_profile_manager_; |
59 | 60 |
60 private: | 61 private: |
61 content::TestBrowserThreadBundle thread_bundle_; | 62 content::TestBrowserThreadBundle thread_bundle_; |
62 ProfileNameVerifierObserver name_observer_; | 63 ProfileNameVerifierObserver name_observer_; |
| 64 base::ScopedPathOverride user_data_dir_override_; |
63 }; | 65 }; |
64 | 66 |
65 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_UNITTEST_H_ | 67 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_UNITTEST_H_ |
OLD | NEW |