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

Side by Side Diff: ios/chrome/browser/browser_state/test_chrome_browser_state_manager.h

Issue 1664193002: Upstream ChromeBrowserStateManagerImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@upstream-chrome-browser-state-impl
Patch Set: Address comments Created 4 years, 10 months 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 IOS_CHROME_BROWSER_BROWSER_STATE_TEST_CHROME_BROWSER_STATE_MANAGER_H_ 5 #ifndef IOS_CHROME_BROWSER_BROWSER_STATE_TEST_CHROME_BROWSER_STATE_MANAGER_H_
6 #define IOS_CHROME_BROWSER_BROWSER_STATE_TEST_CHROME_BROWSER_STATE_MANAGER_H_ 6 #define IOS_CHROME_BROWSER_BROWSER_STATE_TEST_CHROME_BROWSER_STATE_MANAGER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ios/chrome/browser/browser_state/browser_state_info_cache.h" 9 #include "ios/chrome/browser/browser_state/browser_state_info_cache.h"
10 #include "ios/chrome/browser/browser_state/chrome_browser_state_manager.h"
10 #include "ios/chrome/test/ios_chrome_scoped_testing_local_state.h" 11 #include "ios/chrome/test/ios_chrome_scoped_testing_local_state.h"
11 #include "ios/public/provider/chrome/browser/browser_state/chrome_browser_state_ manager.h"
12 12
13 namespace ios { 13 namespace ios {
14 class ChromeBrowserState; 14 class ChromeBrowserState;
15 } 15 }
16 16
17 // ChromeBrowserStateManager implementation for tests. 17 // ChromeBrowserStateManager implementation for tests.
18 class TestChromeBrowserStateManager : public ios::ChromeBrowserStateManager { 18 class TestChromeBrowserStateManager : public ios::ChromeBrowserStateManager {
19 public: 19 public:
20 explicit TestChromeBrowserStateManager(const base::FilePath& user_data_dir); 20 explicit TestChromeBrowserStateManager(const base::FilePath& user_data_dir);
21 ~TestChromeBrowserStateManager() override; 21 ~TestChromeBrowserStateManager() override;
22 22
23 // ChromeBrowserStateManager: 23 // ChromeBrowserStateManager:
24 ios::ChromeBrowserState* GetLastUsedBrowserState() override; 24 ios::ChromeBrowserState* GetLastUsedBrowserState() override;
25 ios::ChromeBrowserState* GetBrowserState(const base::FilePath& path) override; 25 ios::ChromeBrowserState* GetBrowserState(const base::FilePath& path) override;
26 BrowserStateInfoCache* GetBrowserStateInfoCache() override; 26 BrowserStateInfoCache* GetBrowserStateInfoCache() override;
27 std::vector<ios::ChromeBrowserState*> GetLoadedBrowserStates() override; 27 std::vector<ios::ChromeBrowserState*> GetLoadedBrowserStates() override;
28 28
29 private: 29 private:
30 IOSChromeScopedTestingLocalState local_state_; 30 IOSChromeScopedTestingLocalState local_state_;
31 BrowserStateInfoCache browser_state_info_cache_; 31 BrowserStateInfoCache browser_state_info_cache_;
32 32
33 DISALLOW_COPY_AND_ASSIGN(TestChromeBrowserStateManager); 33 DISALLOW_COPY_AND_ASSIGN(TestChromeBrowserStateManager);
34 }; 34 };
35 35
36 #endif // IOS_CHROME_BROWSER_BROWSER_STATE_TEST_CHROME_BROWSER_STATE_MANAGER_H_ 36 #endif // IOS_CHROME_BROWSER_BROWSER_STATE_TEST_CHROME_BROWSER_STATE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698