summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-11 06:19:13 +0000
committeryzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-11 06:19:13 +0000
commita28a9deb3c9bbd2114001ae3069a6ca4eb73952a (patch)
tree0758c346fbf40a4196794c9fe2c7f47c1d8c8b49
parentf439d425af53b4726cbeda1a401e35ef613ec9f5 (diff)
downloadchromium_src-a28a9deb3c9bbd2114001ae3069a6ca4eb73952a.zip
chromium_src-a28a9deb3c9bbd2114001ae3069a6ca4eb73952a.tar.gz
chromium_src-a28a9deb3c9bbd2114001ae3069a6ca4eb73952a.tar.bz2
Enable mojo unittests on chromium_trybot and waterfall bots.
BUG=346766 TEST=the tests should succeed, including on Mac. R=phajdan.jr@chromium.org, viettrungluu@chromium.org Review URL: https://codereview.chromium.org/189583009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256147 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--mojo/system/multiprocess_message_pipe_unittest.cc8
-rw-r--r--mojo/system/raw_channel_unittest.cc11
-rw-r--r--testing/buildbot/chromium.linux.json50
-rw-r--r--testing/buildbot/chromium.mac.json32
-rw-r--r--testing/buildbot/chromium_trybot.json10
5 files changed, 103 insertions, 8 deletions
diff --git a/mojo/system/multiprocess_message_pipe_unittest.cc b/mojo/system/multiprocess_message_pipe_unittest.cc
index d4b8faf..ced07df 100644
--- a/mojo/system/multiprocess_message_pipe_unittest.cc
+++ b/mojo/system/multiprocess_message_pipe_unittest.cc
@@ -215,7 +215,13 @@ TEST_F(MultiprocessMessagePipeTest, Basic) {
// Sends a bunch of messages to the child. Expects them "repeated" back. Waits
// for the child to close its end before quitting.
-TEST_F(MultiprocessMessagePipeTest, QueueMessages) {
+// TODO(yzshen): The test hangs on Mac. http://crbug.com/350575
+#if defined(OS_MACOSX)
+#define MAYBE_QueueMessages DISABLED_QueueMessages
+#else
+#define MAYBE_QueueMessages QueueMessages
+#endif
+TEST_F(MultiprocessMessagePipeTest, MAYBE_QueueMessages) {
helper()->StartChild("EchoEcho");
scoped_refptr<MessagePipe> mp(new MessagePipe(
diff --git a/mojo/system/raw_channel_unittest.cc b/mojo/system/raw_channel_unittest.cc
index 3af7594..b8d0650 100644
--- a/mojo/system/raw_channel_unittest.cc
+++ b/mojo/system/raw_channel_unittest.cc
@@ -511,7 +511,16 @@ TEST_F(RawChannelTest, OnFatalError) {
// TODO(yzshen): On Windows, I haven't figured out a way to shut down one
// direction of the named pipe.
-TEST_F(RawChannelTest, ReadUnaffectedByWriteFatalError) {
+// TODO(yzshen): On Mac, shutting down read on one end doesn't fail write on the
+// other end.
+#if defined(OS_MACOSX)
+#define MAYBE_ReadUnaffectedByWriteFatalError \
+ DISABLED_ReadUnaffectedByWriteFatalError
+#else
+#define MAYBE_ReadUnaffectedByWriteFatalError \
+ ReadUnaffectedByWriteFatalError
+#endif
+TEST_F(RawChannelTest, MAYBE_ReadUnaffectedByWriteFatalError) {
const size_t kMessageCount = 5;
FatalErrorRecordingRawChannelDelegate delegate(2 * kMessageCount, false,
diff --git a/testing/buildbot/chromium.linux.json b/testing/buildbot/chromium.linux.json
index 096c97d..711c3da 100644
--- a/testing/buildbot/chromium.linux.json
+++ b/testing/buildbot/chromium.linux.json
@@ -35,7 +35,15 @@
"sql_unittests",
"browser_tests",
"content_browsertests",
- "webkit_compositor_bindings_unittests"
+ "webkit_compositor_bindings_unittests",
+ "mojo_common_unittests",
+ "mojo_js_unittests",
+ "mojo_public_bindings_unittests",
+ "mojo_public_environment_unittests",
+ "mojo_public_system_unittests",
+ "mojo_public_utility_unittests",
+ "mojo_service_manager_unittests",
+ "mojo_system_unittests"
]
},
"Linux GTK Tests": {
@@ -68,7 +76,15 @@
"sql_unittests",
"browser_tests",
"content_browsertests",
- "webkit_compositor_bindings_unittests"
+ "webkit_compositor_bindings_unittests",
+ "mojo_common_unittests",
+ "mojo_js_unittests",
+ "mojo_public_bindings_unittests",
+ "mojo_public_environment_unittests",
+ "mojo_public_system_unittests",
+ "mojo_public_utility_unittests",
+ "mojo_service_manager_unittests",
+ "mojo_system_unittests"
]
},
"Linux Tests (dbg)(1)(32)": {
@@ -110,7 +126,15 @@
"unit_tests",
"views_unittests",
"sql_unittests",
- "webkit_compositor_bindings_unittests"
+ "webkit_compositor_bindings_unittests",
+ "mojo_common_unittests",
+ "mojo_js_unittests",
+ "mojo_public_bindings_unittests",
+ "mojo_public_environment_unittests",
+ "mojo_public_system_unittests",
+ "mojo_public_utility_unittests",
+ "mojo_service_manager_unittests",
+ "mojo_system_unittests"
]
},
"Linux Tests (dbg)(1)": {
@@ -153,7 +177,15 @@
"unit_tests",
"views_unittests",
"sql_unittests",
- "webkit_compositor_bindings_unittests"
+ "webkit_compositor_bindings_unittests",
+ "mojo_common_unittests",
+ "mojo_js_unittests",
+ "mojo_public_bindings_unittests",
+ "mojo_public_environment_unittests",
+ "mojo_public_system_unittests",
+ "mojo_public_utility_unittests",
+ "mojo_service_manager_unittests",
+ "mojo_system_unittests"
]
},
"Linux Clang (dbg)": {
@@ -169,7 +201,15 @@
"ipc_tests",
"sync_unit_tests",
"unit_tests",
- "sql_unittests"
+ "sql_unittests",
+ "mojo_common_unittests",
+ "mojo_js_unittests",
+ "mojo_public_bindings_unittests",
+ "mojo_public_environment_unittests",
+ "mojo_public_system_unittests",
+ "mojo_public_utility_unittests",
+ "mojo_service_manager_unittests",
+ "mojo_system_unittests"
]
}
}
diff --git a/testing/buildbot/chromium.mac.json b/testing/buildbot/chromium.mac.json
index 73b8e27..86ba62f 100644
--- a/testing/buildbot/chromium.mac.json
+++ b/testing/buildbot/chromium.mac.json
@@ -40,6 +40,14 @@
"gtest_tests": [
"net_unittests",
"message_center_unittests",
+ "mojo_common_unittests",
+ "mojo_js_unittests",
+ "mojo_public_bindings_unittests",
+ "mojo_public_environment_unittests",
+ "mojo_public_system_unittests",
+ "mojo_public_utility_unittests",
+ "mojo_service_manager_unittests",
+ "mojo_system_unittests",
{"test": "browser_tests", "shard_index": 2, "total_shards": 3}
]
},
@@ -84,6 +92,14 @@
"gtest_tests": [
"net_unittests",
"message_center_unittests",
+ "mojo_common_unittests",
+ "mojo_js_unittests",
+ "mojo_public_bindings_unittests",
+ "mojo_public_environment_unittests",
+ "mojo_public_system_unittests",
+ "mojo_public_utility_unittests",
+ "mojo_service_manager_unittests",
+ "mojo_system_unittests",
{"test": "browser_tests", "shard_index": 2, "total_shards": 3}
]
},
@@ -132,6 +148,14 @@
"sql_unittests",
"ui_unittests",
"content_unittests",
+ "mojo_common_unittests",
+ "mojo_js_unittests",
+ "mojo_public_bindings_unittests",
+ "mojo_public_environment_unittests",
+ "mojo_public_system_unittests",
+ "mojo_public_utility_unittests",
+ "mojo_service_manager_unittests",
+ "mojo_system_unittests",
{"test": "browser_tests", "shard_index": 3, "total_shards": 4}
]
},
@@ -180,6 +204,14 @@
"sql_unittests",
"ui_unittests",
"content_unittests",
+ "mojo_common_unittests",
+ "mojo_js_unittests",
+ "mojo_public_bindings_unittests",
+ "mojo_public_environment_unittests",
+ "mojo_public_system_unittests",
+ "mojo_public_utility_unittests",
+ "mojo_service_manager_unittests",
+ "mojo_system_unittests",
{"test": "browser_tests", "shard_index": 3, "total_shards": 4}
]
}
diff --git a/testing/buildbot/chromium_trybot.json b/testing/buildbot/chromium_trybot.json
index b6a07d2..93559f0 100644
--- a/testing/buildbot/chromium_trybot.json
+++ b/testing/buildbot/chromium_trybot.json
@@ -1,3 +1,11 @@
[
- "gfx_unittests"
+ "gfx_unittests",
+ "mojo_common_unittests",
+ "mojo_js_unittests",
+ "mojo_public_bindings_unittests",
+ "mojo_public_environment_unittests",
+ "mojo_public_system_unittests",
+ "mojo_public_utility_unittests",
+ "mojo_service_manager_unittests",
+ "mojo_system_unittests"
]