| 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/macros.h" | 10 #include "base/macros.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 ProfileInfoCacheTest(); | 49 ProfileInfoCacheTest(); |
| 50 ~ProfileInfoCacheTest() override; | 50 ~ProfileInfoCacheTest() override; |
| 51 | 51 |
| 52 void SetUp() override; | 52 void SetUp() override; |
| 53 void TearDown() override; | 53 void TearDown() override; |
| 54 | 54 |
| 55 ProfileInfoCache* GetCache(); | 55 ProfileInfoCache* GetCache(); |
| 56 base::FilePath GetProfilePath(const std::string& base_name); | 56 base::FilePath GetProfilePath(const std::string& base_name); |
| 57 void ResetCache(); | 57 void ResetCache(); |
| 58 | 58 |
| 59 private: |
| 60 // TestBrowserThreadBundle needs to be up through the destruction of the |
| 61 // TestingProfileManager below. |
| 62 content::TestBrowserThreadBundle thread_bundle_; |
| 63 |
| 59 protected: | 64 protected: |
| 60 TestingProfileManager testing_profile_manager_; | 65 TestingProfileManager testing_profile_manager_; |
| 61 | 66 |
| 62 private: | 67 private: |
| 63 content::TestBrowserThreadBundle thread_bundle_; | |
| 64 ProfileNameVerifierObserver name_observer_; | 68 ProfileNameVerifierObserver name_observer_; |
| 65 base::ScopedPathOverride user_data_dir_override_; | 69 base::ScopedPathOverride user_data_dir_override_; |
| 66 }; | 70 }; |
| 67 | 71 |
| 68 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_UNITTEST_H_ | 72 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_UNITTEST_H_ |
| OLD | NEW |