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

Unified Diff: content/common/mojo/mojo_browsertest.cc

Issue 187183002: Add creation of ServiceManager to Content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Check USE_MOJO for Windows bots Created 6 years, 9 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
Index: content/common/mojo/mojo_browsertest.cc
diff --git a/content/common/mojo/mojo_browsertest.cc b/content/common/mojo/mojo_browsertest.cc
new file mode 100644
index 0000000000000000000000000000000000000000..eaada425e7a0a7a8b3761302c03b9bea6e4eec1d
--- /dev/null
+++ b/content/common/mojo/mojo_browsertest.cc
@@ -0,0 +1,29 @@
+// Copyright (c) 2014 The Chromium Authors. All rights reserved.
sky 2014/03/19 23:48:29 Maybe this file should be named mojo_init_browsert
DaveMoore 2014/03/20 00:04:26 This is a placeholder for real tests, when the ser
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/test/content_browser_test.h"
+#include "mojo/service_manager/service_manager.h"
+#include "testing/gtest/include/gtest/gtest.h"
+
+namespace content {
+
+class MojoTest : public ContentBrowserTest {
+ public:
+ MojoTest() {}
+
+ protected:
+ bool HasCreatedInstance() {
+ return mojo::ServiceManager::TestAPI::HasCreatedInstance();
+ }
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MojoTest);
+};
+
+// Placeholder test to confirm we are initializing Mojo.
+IN_PROC_BROWSER_TEST_F(MojoTest, Init) {
+ EXPECT_TRUE(HasCreatedInstance());
+}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698