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

Unified Diff: extensions/browser/mojo/keep_alive_impl_unittest.cc

Issue 671763002: Extract ProcessManager from ExtensionSystem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/browser/mojo/keep_alive_impl.cc ('k') | extensions/browser/process_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/mojo/keep_alive_impl_unittest.cc
diff --git a/extensions/browser/mojo/keep_alive_impl_unittest.cc b/extensions/browser/mojo/keep_alive_impl_unittest.cc
index eea8f83e49cfb3b605e4666072a2e5135ab11d08..b9ca700cfb26cc8e6966f430f080eff2b81eb2a7 100644
--- a/extensions/browser/mojo/keep_alive_impl_unittest.cc
+++ b/extensions/browser/mojo/keep_alive_impl_unittest.cc
@@ -17,22 +17,6 @@
namespace extensions {
-namespace {
-
-class TestExtensionSystem : public MockExtensionSystem {
- public:
- explicit TestExtensionSystem(content::BrowserContext* context)
- : MockExtensionSystem(context),
- process_manager_(ProcessManager::Create(context)) {}
-
- ProcessManager* process_manager() override { return process_manager_.get(); }
-
- private:
- scoped_ptr<ProcessManager> process_manager_;
-};
-
-} // namespace
-
class KeepAliveTest : public ExtensionsTest {
public:
KeepAliveTest()
@@ -81,14 +65,13 @@ class KeepAliveTest : public ExtensionsTest {
const Extension* extension() { return extension_.get(); }
int GetKeepAliveCount() {
- return ExtensionSystem::Get(browser_context())
- ->process_manager()
+ return ProcessManager::Get(browser_context())
->GetLazyKeepaliveCount(extension());
}
private:
scoped_ptr<base::MessageLoop> message_loop_;
- MockExtensionSystemFactory<TestExtensionSystem> extension_system_factory_;
+ MockExtensionSystemFactory<MockExtensionSystem> extension_system_factory_;
scoped_ptr<content::NotificationService> notification_service_;
scoped_refptr<const Extension> extension_;
scoped_ptr<TestExtensionsBrowserClient> browser_client_;
« no previous file with comments | « extensions/browser/mojo/keep_alive_impl.cc ('k') | extensions/browser/process_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698