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

Side by Side Diff: chrome/test/base/testing_browser_process.h

Issue 14576015: In WinAura, also kill the Metro viewer process in AttemptExit(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed NOTREACHED() as discussed Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // An implementation of BrowserProcess for unit tests that fails for most 5 // An implementation of BrowserProcess for unit tests that fails for most
6 // services. By preventing creation of services, we reduce dependencies and 6 // services. By preventing creation of services, we reduce dependencies and
7 // keep the profile clean. Clients of this class must handle the NULL return 7 // keep the profile clean. Clients of this class must handle the NULL return
8 // value, however. 8 // value, however.
9 9
10 #ifndef CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ 10 #ifndef CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 virtual PnaclComponentInstaller* pnacl_component_installer() OVERRIDE; 106 virtual PnaclComponentInstaller* pnacl_component_installer() OVERRIDE;
107 virtual BookmarkPromptController* bookmark_prompt_controller() OVERRIDE; 107 virtual BookmarkPromptController* bookmark_prompt_controller() OVERRIDE;
108 virtual chrome::MediaFileSystemRegistry* 108 virtual chrome::MediaFileSystemRegistry*
109 media_file_system_registry() OVERRIDE; 109 media_file_system_registry() OVERRIDE;
110 virtual void PlatformSpecificCommandLineProcessing( 110 virtual void PlatformSpecificCommandLineProcessing(
111 const CommandLine& command_line) OVERRIDE; 111 const CommandLine& command_line) OVERRIDE;
112 virtual bool created_local_state() const OVERRIDE; 112 virtual bool created_local_state() const OVERRIDE;
113 113
114 #if defined(OS_WIN) && defined(USE_AURA) 114 #if defined(OS_WIN) && defined(USE_AURA)
115 virtual void OnMetroViewerProcessTerminated() OVERRIDE {} 115 virtual void OnMetroViewerProcessTerminated() OVERRIDE {}
116 virtual void TerminateMetroViewerProcess() OVERRIDE {}
116 #endif 117 #endif
117 118
118 // Set the local state for tests. Consumer is responsible for cleaning it up 119 // Set the local state for tests. Consumer is responsible for cleaning it up
119 // afterwards (using ScopedTestingLocalState, for example). 120 // afterwards (using ScopedTestingLocalState, for example).
120 void SetLocalState(PrefService* local_state); 121 void SetLocalState(PrefService* local_state);
121 void SetProfileManager(ProfileManager* profile_manager); 122 void SetProfileManager(ProfileManager* profile_manager);
122 void SetIOThread(IOThread* io_thread); 123 void SetIOThread(IOThread* io_thread);
123 void SetBrowserPolicyConnector(policy::BrowserPolicyConnector* connector); 124 void SetBrowserPolicyConnector(policy::BrowserPolicyConnector* connector);
124 void SetSafeBrowsingService(SafeBrowsingService* sb_service); 125 void SetSafeBrowsingService(SafeBrowsingService* sb_service);
125 void SetBookmarkPromptController(BookmarkPromptController* controller); 126 void SetBookmarkPromptController(BookmarkPromptController* controller);
(...skipping 29 matching lines...) Expand all
155 PrefService* local_state_; 156 PrefService* local_state_;
156 IOThread* io_thread_; 157 IOThread* io_thread_;
157 net::URLRequestContextGetter* system_request_context_; 158 net::URLRequestContextGetter* system_request_context_;
158 159
159 scoped_ptr<BrowserProcessPlatformPart> platform_part_; 160 scoped_ptr<BrowserProcessPlatformPart> platform_part_;
160 161
161 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); 162 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess);
162 }; 163 };
163 164
164 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ 165 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698