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

Unified Diff: mojo/shell/child_process_host_unittest.cc

Issue 775343004: Move //mojo/shell to //shell (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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/shell/child_process_host.cc ('k') | mojo/shell/context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/child_process_host_unittest.cc
diff --git a/mojo/shell/child_process_host_unittest.cc b/mojo/shell/child_process_host_unittest.cc
deleted file mode 100644
index 123cbfb6053f5a1d25ef8e110de73af93db56820..0000000000000000000000000000000000000000
--- a/mojo/shell/child_process_host_unittest.cc
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Note: This file also tests child_process.*.
-
-#include "mojo/shell/child_process_host.h"
-
-#include "base/logging.h"
-#include "base/macros.h"
-#include "base/message_loop/message_loop.h"
-#include "mojo/common/message_pump_mojo.h"
-#include "mojo/shell/context.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace mojo {
-namespace shell {
-namespace test {
-namespace {
-
-class TestChildProcessHostDelegate : public ChildProcessHost::Delegate {
- public:
- TestChildProcessHostDelegate() {}
- ~TestChildProcessHostDelegate() {}
- void WillStart() override {
- VLOG(2) << "TestChildProcessHostDelegate::WillStart()";
- }
- void DidStart(bool success) override {
- VLOG(2) << "TestChildProcessHostDelegate::DidStart(" << success << ")";
- base::MessageLoop::current()->QuitWhenIdle();
- }
-};
-
-typedef testing::Test ChildProcessHostTest;
-
-TEST_F(ChildProcessHostTest, Basic) {
- Context context;
- base::MessageLoop message_loop(
- scoped_ptr<base::MessagePump>(new common::MessagePumpMojo()));
- context.Init();
- TestChildProcessHostDelegate child_process_host_delegate;
- ChildProcessHost child_process_host(&context,
- &child_process_host_delegate,
- ChildProcess::TYPE_TEST);
- child_process_host.Start();
- message_loop.Run();
- int exit_code = child_process_host.Join();
- VLOG(2) << "Joined child: exit_code = " << exit_code;
- EXPECT_EQ(0, exit_code);
-}
-
-} // namespace
-} // namespace test
-} // namespace shell
-} // namespace mojo
« no previous file with comments | « mojo/shell/child_process_host.cc ('k') | mojo/shell/context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698