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

Unified Diff: ppapi/tests/test_post_message.cc

Issue 9358030: PPAPI: Dial back the PostMessage threading test and re-enable on Win (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/ui/ppapi_uitest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_post_message.cc
diff --git a/ppapi/tests/test_post_message.cc b/ppapi/tests/test_post_message.cc
index 94b47de48ceeed22fc84aea8ecaf6ec4620848a3..68fe6335cd79423d93556d5a4fb1e0a06521249e 100644
--- a/ppapi/tests/test_post_message.cc
+++ b/ppapi/tests/test_post_message.cc
@@ -29,8 +29,16 @@ const char kTestString[] = "Hello world!";
const bool kTestBool = true;
const int32_t kTestInt = 42;
const double kTestDouble = 42.0;
+
+// On Windows XP bots, the NonMainThread test can run very slowly. So we dial
+// back the number of threads & messages when running on Windows.
+#ifdef PPAPI_OS_WIN
+const int32_t kThreadsToRun = 2;
+const int32_t kMessagesToSendPerThread = 5;
+#else
const int32_t kThreadsToRun = 4;
const int32_t kMessagesToSendPerThread = 10;
+#endif
// The struct that invoke_post_message_thread_func expects for its argument.
// It includes the instance on which to invoke PostMessage, and the value to
« no previous file with comments | « chrome/test/ui/ppapi_uitest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698