OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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 #include "mojo/common/test/multiprocess_test_helper.h" | 5 #include "mojo/common/test/multiprocess_test_helper.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 #include "mojo/common/test/test_utils.h" | 9 #include "mojo/common/test/test_utils.h" |
10 #include "mojo/system/embedder/scoped_platform_handle.h" | 10 #include "mojo/embedder/scoped_platform_handle.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
12 | 12 |
13 #if defined(OS_POSIX) | 13 #if defined(OS_POSIX) |
14 #include <fcntl.h> | 14 #include <fcntl.h> |
15 #endif | 15 #endif |
16 | 16 |
17 namespace mojo { | 17 namespace mojo { |
18 namespace test { | 18 namespace test { |
19 namespace { | 19 namespace { |
20 | 20 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 EXPECT_FALSE(MultiprocessTestHelper::client_platform_handle.is_valid()) | 148 EXPECT_FALSE(MultiprocessTestHelper::client_platform_handle.is_valid()) |
149 << "DISREGARD: Expected failure #1 in child process"; | 149 << "DISREGARD: Expected failure #1 in child process"; |
150 EXPECT_FALSE(IsNonBlocking( | 150 EXPECT_FALSE(IsNonBlocking( |
151 MultiprocessTestHelper::client_platform_handle.get())) | 151 MultiprocessTestHelper::client_platform_handle.get())) |
152 << "DISREGARD: Expected failure #2 in child process"; | 152 << "DISREGARD: Expected failure #2 in child process"; |
153 } | 153 } |
154 | 154 |
155 } // namespace | 155 } // namespace |
156 } // namespace test | 156 } // namespace test |
157 } // namespace mojo | 157 } // namespace mojo |
OLD | NEW |