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

Side by Side Diff: mojo/edk/test/multiprocess_test_helper.h

Issue 728783003: Add infrastructure to run tests on android. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Use file_hash Created 6 years, 1 month 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
OLDNEW
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 #ifndef MOJO_EDK_TEST_MULTIPROCESS_TEST_HELPER_H_ 5 #ifndef MOJO_EDK_TEST_MULTIPROCESS_TEST_HELPER_H_
6 #define MOJO_EDK_TEST_MULTIPROCESS_TEST_HELPER_H_ 6 #define MOJO_EDK_TEST_MULTIPROCESS_TEST_HELPER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/process/process_handle.h" 11 #include "base/process/process_handle.h"
12 #include "base/test/multiprocess_test.h" 12 #include "base/test/multiprocess_test.h"
13 #include "base/test/test_timeouts.h" 13 #include "base/test/test_timeouts.h"
14 #include "mojo/edk/embedder/scoped_platform_handle.h" 14 #include "mojo/edk/embedder/scoped_platform_handle.h"
15 #include "testing/multiprocess_func_list.h" 15 #include "testing/multiprocess_func_list.h"
16 16
17 // Multi process tests are not supported on android, because the platform
18 // doesn't provide an executable to exec and only forking is too hacky and
19 // fragile.
20 #if defined(OS_ANDROID)
21 #error "Multi process tests are not supported."
22 #endif
23
17 namespace mojo { 24 namespace mojo {
18 25
19 namespace embedder { 26 namespace embedder {
20 class PlatformChannelPair; 27 class PlatformChannelPair;
21 } 28 }
22 29
23 namespace test { 30 namespace test {
24 31
25 class MultiprocessTestHelper { 32 class MultiprocessTestHelper {
26 public: 33 public:
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 ::testing::Test::HasNonfatalFailure()) \ 90 ::testing::Test::HasNonfatalFailure()) \
84 ? 1 \ 91 ? 1 \
85 : 0; \ 92 : 0; \
86 } \ 93 } \
87 void test_child_name##TestChildTest() 94 void test_child_name##TestChildTest()
88 95
89 } // namespace test 96 } // namespace test
90 } // namespace mojo 97 } // namespace mojo
91 98
92 #endif // MOJO_EDK_TEST_MULTIPROCESS_TEST_HELPER_H_ 99 #endif // MOJO_EDK_TEST_MULTIPROCESS_TEST_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698