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

Side by Side Diff: mojo/runner/child_process_host_unittest.cc

Issue 1262173005: Straightens outs DEPS in mojo/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add dep on system_for_component Created 5 years, 4 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 unified diff | Download patch
« no previous file with comments | « mojo/runner/child_process.cc ('k') | mojo/services/network/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Note: This file also tests child_process.*. 5 // Note: This file also tests child_process.*.
6 6
7 #include "mojo/runner/child_process_host.h" 7 #include "mojo/runner/child_process_host.h"
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/message_loop/message_loop.h" 11 #include "base/message_loop/message_loop.h"
12 #include "mojo/common/message_pump_mojo.h" 12 #include "mojo/message_pump/message_pump_mojo.h"
13 #include "mojo/runner/context.h" 13 #include "mojo/runner/context.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
16 namespace mojo { 16 namespace mojo {
17 namespace runner { 17 namespace runner {
18 namespace { 18 namespace {
19 19
20 // Subclass just so we can observe |DidStart()|. 20 // Subclass just so we can observe |DidStart()|.
21 class TestChildProcessHost : public ChildProcessHost { 21 class TestChildProcessHost : public ChildProcessHost {
22 public: 22 public:
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 int exit_code = child_process_host.Join(); 54 int exit_code = child_process_host.Join();
55 VLOG(2) << "Joined child: exit_code = " << exit_code; 55 VLOG(2) << "Joined child: exit_code = " << exit_code;
56 EXPECT_EQ(123, exit_code); 56 EXPECT_EQ(123, exit_code);
57 57
58 context.Shutdown(); 58 context.Shutdown();
59 } 59 }
60 60
61 } // namespace 61 } // namespace
62 } // namespace runner 62 } // namespace runner
63 } // namespace mojo 63 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/runner/child_process.cc ('k') | mojo/services/network/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698