Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1151)

Side by Side Diff: chrome/browser/profiles/profile_info_cache_unittest.h

Issue 2523093002: TestBrowserThreads must outlive TestProfiles and TestProfileManagers (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_unittest.cc ('k') | chrome/browser/profiles/profile_list_desktop_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698