Chromium Code Reviews| 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 |