| 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 "chrome/browser/profiles/profile_info_cache_observer.h" | 10 #include "chrome/browser/profiles/profile_info_cache_observer.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 private: | 38 private: |
| 39 ProfileInfoCache* GetCache(); | 39 ProfileInfoCache* GetCache(); |
| 40 std::set<base::string16> profile_names_; | 40 std::set<base::string16> profile_names_; |
| 41 TestingProfileManager* testing_profile_manager_; | 41 TestingProfileManager* testing_profile_manager_; |
| 42 DISALLOW_COPY_AND_ASSIGN(ProfileNameVerifierObserver); | 42 DISALLOW_COPY_AND_ASSIGN(ProfileNameVerifierObserver); |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 class ProfileInfoCacheTest : public testing::Test { | 45 class ProfileInfoCacheTest : public testing::Test { |
| 46 protected: | 46 protected: |
| 47 ProfileInfoCacheTest(); | 47 ProfileInfoCacheTest(); |
| 48 virtual ~ProfileInfoCacheTest(); | 48 ~ProfileInfoCacheTest() override; |
| 49 | 49 |
| 50 virtual void SetUp() override; | 50 void SetUp() override; |
| 51 virtual void TearDown() override; | 51 void TearDown() override; |
| 52 | 52 |
| 53 ProfileInfoCache* GetCache(); | 53 ProfileInfoCache* GetCache(); |
| 54 base::FilePath GetProfilePath(const std::string& base_name); | 54 base::FilePath GetProfilePath(const std::string& base_name); |
| 55 void ResetCache(); | 55 void ResetCache(); |
| 56 | 56 |
| 57 protected: | 57 protected: |
| 58 TestingProfileManager testing_profile_manager_; | 58 TestingProfileManager testing_profile_manager_; |
| 59 | 59 |
| 60 private: | 60 private: |
| 61 content::TestBrowserThreadBundle thread_bundle_; | 61 content::TestBrowserThreadBundle thread_bundle_; |
| 62 ProfileNameVerifierObserver name_observer_; | 62 ProfileNameVerifierObserver name_observer_; |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_UNITTEST_H_ | 65 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_UNITTEST_H_ |
| OLD | NEW |