| OLD | NEW | 
|---|
| 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_TEST_TESTING_APPLICATION_CONTEXT_H_ | 5 #ifndef IOS_CHROME_TEST_TESTING_APPLICATION_CONTEXT_H_ | 
| 6 #define IOS_CHROME_TEST_TESTING_APPLICATION_CONTEXT_H_ | 6 #define IOS_CHROME_TEST_TESTING_APPLICATION_CONTEXT_H_ | 
| 7 | 7 | 
| 8 #include "base/macros.h" | 8 #include "base/macros.h" | 
| 9 #include "base/threading/thread_checker.h" | 9 #include "base/threading/thread_checker.h" | 
| 10 #include "ios/chrome/browser/application_context.h" | 10 #include "ios/chrome/browser/application_context.h" | 
| (...skipping 14 matching lines...) Expand all  Loading... | 
| 25   void SetChromeBrowserStateManager(ios::ChromeBrowserStateManager* manager); | 25   void SetChromeBrowserStateManager(ios::ChromeBrowserStateManager* manager); | 
| 26 | 26 | 
| 27   // ApplicationContext implementation. | 27   // ApplicationContext implementation. | 
| 28   PrefService* GetLocalState() override; | 28   PrefService* GetLocalState() override; | 
| 29   net::URLRequestContextGetter* GetSystemURLRequestContext() override; | 29   net::URLRequestContextGetter* GetSystemURLRequestContext() override; | 
| 30   const std::string& GetApplicationLocale() override; | 30   const std::string& GetApplicationLocale() override; | 
| 31   ios::ChromeBrowserStateManager* GetChromeBrowserStateManager() override; | 31   ios::ChromeBrowserStateManager* GetChromeBrowserStateManager() override; | 
| 32   metrics::MetricsService* GetMetricsService() override; | 32   metrics::MetricsService* GetMetricsService() override; | 
| 33   policy::BrowserPolicyConnector* GetBrowserPolicyConnector() override; | 33   policy::BrowserPolicyConnector* GetBrowserPolicyConnector() override; | 
| 34   rappor::RapporService* GetRapporService() override; | 34   rappor::RapporService* GetRapporService() override; | 
|  | 35   net_log::ChromeNetLog* GetNetLog() override; | 
| 35 | 36 | 
| 36  private: | 37  private: | 
| 37   base::ThreadChecker thread_checker_; | 38   base::ThreadChecker thread_checker_; | 
| 38   std::string application_locale_; | 39   std::string application_locale_; | 
| 39   PrefService* local_state_; | 40   PrefService* local_state_; | 
| 40   ios::ChromeBrowserStateManager* chrome_browser_state_manager_; | 41   ios::ChromeBrowserStateManager* chrome_browser_state_manager_; | 
| 41 | 42 | 
| 42   DISALLOW_COPY_AND_ASSIGN(TestingApplicationContext); | 43   DISALLOW_COPY_AND_ASSIGN(TestingApplicationContext); | 
| 43 }; | 44 }; | 
| 44 | 45 | 
| 45 #endif  // IOS_CHROME_TEST_TESTING_APPLICATION_CONTEXT_H_ | 46 #endif  // IOS_CHROME_TEST_TESTING_APPLICATION_CONTEXT_H_ | 
| OLD | NEW | 
|---|