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

Unified Diff: mojo/service_manager/service_manager.h

Issue 256133002: Changes view manager test to connect via shell (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge to trunk Created 6 years, 8 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 | « mojo/mojo_services.gypi ('k') | mojo/service_manager/service_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/service_manager/service_manager.h
diff --git a/mojo/service_manager/service_manager.h b/mojo/service_manager/service_manager.h
index 40cb8cdb1fea225c3e8f66e2d0ba23b93f16087a..ae4112707ba62db8b717e319014081c59931bdcb 100644
--- a/mojo/service_manager/service_manager.h
+++ b/mojo/service_manager/service_manager.h
@@ -16,27 +16,32 @@
#include "mojo/service_manager/service_manager_export.h"
#include "url/gurl.h"
-namespace content {
- class MojoTest;
-}
-
namespace mojo {
class MOJO_SERVICE_MANAGER_EXPORT ServiceManager {
public:
// API for testing.
class MOJO_SERVICE_MANAGER_EXPORT TestAPI {
- private:
- friend class ServiceManagerTest;
- friend class content::MojoTest;
+ public:
+ explicit TestAPI(ServiceManager* manager);
+ ~TestAPI();
+
+ // Returns a handle to the shell.
+ ScopedShellHandle GetShellHandle();
- explicit TestAPI(ServiceManager* manager) : manager_(manager) {}
// Returns true if the shared instance has been created.
static bool HasCreatedInstance();
// Returns true if there is a ServiceFactory for this URL.
bool HasFactoryForURL(const GURL& url) const;
+ private:
+ class TestShellConnection;
+
ServiceManager* manager_;
+
+ scoped_ptr<TestShellConnection> shell_connection_;
+
+ DISALLOW_COPY_AND_ASSIGN(TestAPI);
};
// Interface class for debugging only.
« no previous file with comments | « mojo/mojo_services.gypi ('k') | mojo/service_manager/service_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698