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

Side by Side Diff: mojo/common/test/multiprocess_test_base_unittest.cc

Issue 99473007: Mojo: Add a Mojo-specific multiprocess test base class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment + win fix Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « mojo/common/test/multiprocess_test_base.cc ('k') | mojo/mojo.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "mojo/common/test/multiprocess_test_base.h"
6
7 namespace mojo {
8 namespace {
9
10 class MultiprocessTestBaseTest : public test::MultiprocessTestBase {
11 };
12
13 TEST_F(MultiprocessTestBaseTest, RunChild) {
14 StartChild("RunChild");
15 EXPECT_EQ(123, WaitForChildShutdown());
16 }
17
18 MOJO_MULTIPROCESS_TEST_CHILD_MAIN(RunChild) {
19 return 123;
20 }
21
22 TEST_F(MultiprocessTestBaseTest, TestChildMainNotFound) {
23 StartChild("NoSuchTestChildMain");
24 int result = WaitForChildShutdown();
25 EXPECT_FALSE(result >= 0 && result <= 127);
26 }
27
28 } // namespace
29 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/common/test/multiprocess_test_base.cc ('k') | mojo/mojo.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698