summaryrefslogtreecommitdiffstats
path: root/mojo/edk/test/multiprocess_test_helper_unittest.cc
diff options
context:
space:
mode:
authorrockot <rockot@chromium.org>2014-12-02 02:48:08 -0800
committerCommit bot <commit-bot@chromium.org>2014-12-02 10:49:17 +0000
commit48847895beb5eb7da6e25d0d21e72a57a6d6d0a7 (patch)
tree380c73a4756bff4188af25ba0df924e78689faf9 /mojo/edk/test/multiprocess_test_helper_unittest.cc
parent5affb709cd2953c5c0c4c2db97da420851ab31cb (diff)
downloadchromium_src-48847895beb5eb7da6e25d0d21e72a57a6d6d0a7.zip
chromium_src-48847895beb5eb7da6e25d0d21e72a57a6d6d0a7.tar.gz
chromium_src-48847895beb5eb7da6e25d0d21e72a57a6d6d0a7.tar.bz2
Update mojo sdk to rev 98d8236f7eea383e5214254c8d045df6c7a6297a
BUG=435144 TBR=jamesr@chromium.org TBR=dalecurtis@chromium.org for media test update Review URL: https://codereview.chromium.org/769753003 Cr-Commit-Position: refs/heads/master@{#306367}
Diffstat (limited to 'mojo/edk/test/multiprocess_test_helper_unittest.cc')
-rw-r--r--mojo/edk/test/multiprocess_test_helper_unittest.cc48
1 files changed, 42 insertions, 6 deletions
diff --git a/mojo/edk/test/multiprocess_test_helper_unittest.cc b/mojo/edk/test/multiprocess_test_helper_unittest.cc
index 2961a74..93496fb 100644
--- a/mojo/edk/test/multiprocess_test_helper_unittest.cc
+++ b/mojo/edk/test/multiprocess_test_helper_unittest.cc
@@ -42,7 +42,13 @@ bool ReadByte(const embedder::PlatformHandle& handle, char* c) {
typedef testing::Test MultiprocessTestHelperTest;
-TEST_F(MultiprocessTestHelperTest, RunChild) {
+#if defined(OS_ANDROID)
+// Android multi-process tests are not executing the new process. This is flaky.
+#define MAYBE_RunChild DISABLED_RunChild
+#else
+#define MAYBE_RunChild RunChild
+#endif // defined(OS_ANDROID)
+TEST_F(MultiprocessTestHelperTest, MAYBE_RunChild) {
MultiprocessTestHelper helper;
EXPECT_TRUE(helper.server_platform_handle.is_valid());
@@ -55,14 +61,26 @@ MOJO_MULTIPROCESS_TEST_CHILD_MAIN(RunChild) {
return 123;
}
-TEST_F(MultiprocessTestHelperTest, TestChildMainNotFound) {
+#if defined(OS_ANDROID)
+// Android multi-process tests are not executing the new process. This is flaky.
+#define MAYBE_TestChildMainNotFound DISABLED_TestChildMainNotFound
+#else
+#define MAYBE_TestChildMainNotFound TestChildMainNotFound
+#endif // defined(OS_ANDROID)
+TEST_F(MultiprocessTestHelperTest, MAYBE_TestChildMainNotFound) {
MultiprocessTestHelper helper;
helper.StartChild("NoSuchTestChildMain");
int result = helper.WaitForChildShutdown();
EXPECT_FALSE(result >= 0 && result <= 127);
}
-TEST_F(MultiprocessTestHelperTest, PassedChannel) {
+#if defined(OS_ANDROID)
+// Android multi-process tests are not executing the new process. This is flaky.
+#define MAYBE_PassedChannel DISABLED_PassedChannel
+#else
+#define MAYBE_PassedChannel PassedChannel
+#endif // defined(OS_ANDROID)
+TEST_F(MultiprocessTestHelperTest, MAYBE_PassedChannel) {
MultiprocessTestHelper helper;
EXPECT_TRUE(helper.server_platform_handle.is_valid());
helper.StartChild("PassedChannel");
@@ -109,7 +127,13 @@ MOJO_MULTIPROCESS_TEST_CHILD_MAIN(PassedChannel) {
return static_cast<int>(c);
}
-TEST_F(MultiprocessTestHelperTest, ChildTestPasses) {
+#if defined(OS_ANDROID)
+// Android multi-process tests are not executing the new process. This is flaky.
+#define MAYBE_ChildTestPasses DISABLED_ChildTestPasses
+#else
+#define MAYBE_ChildTestPasses ChildTestPasses
+#endif // defined(OS_ANDROID)
+TEST_F(MultiprocessTestHelperTest, MAYBE_ChildTestPasses) {
MultiprocessTestHelper helper;
EXPECT_TRUE(helper.server_platform_handle.is_valid());
helper.StartChild("ChildTestPasses");
@@ -122,7 +146,13 @@ MOJO_MULTIPROCESS_TEST_CHILD_TEST(ChildTestPasses) {
IsNonBlocking(MultiprocessTestHelper::client_platform_handle.get()));
}
-TEST_F(MultiprocessTestHelperTest, ChildTestFailsAssert) {
+#if defined(OS_ANDROID)
+// Android multi-process tests are not executing the new process. This is flaky.
+#define MAYBE_ChildTestFailsAssert DISABLED_ChildTestFailsAssert
+#else
+#define MAYBE_ChildTestFailsAssert ChildTestFailsAssert
+#endif // defined(OS_ANDROID)
+TEST_F(MultiprocessTestHelperTest, MAYBE_ChildTestFailsAssert) {
MultiprocessTestHelper helper;
EXPECT_TRUE(helper.server_platform_handle.is_valid());
helper.StartChild("ChildTestFailsAssert");
@@ -138,7 +168,13 @@ MOJO_MULTIPROCESS_TEST_CHILD_TEST(ChildTestFailsAssert) {
CHECK(false) << "Not reached";
}
-TEST_F(MultiprocessTestHelperTest, ChildTestFailsExpect) {
+#if defined(OS_ANDROID)
+// Android multi-process tests are not executing the new process. This is flaky.
+#define MAYBE_ChildTestFailsExpect DISABLED_ChildTestFailsExpect
+#else
+#define MAYBE_ChildTestFailsExpect ChildTestFailsExpect
+#endif // defined(OS_ANDROID)
+TEST_F(MultiprocessTestHelperTest, MAYBE_ChildTestFailsExpect) {
MultiprocessTestHelper helper;
EXPECT_TRUE(helper.server_platform_handle.is_valid());
helper.StartChild("ChildTestFailsExpect");