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

Unified Diff: native_client_sdk/src/tests/nacl_io_test/main.cc

Issue 61213002: [NaCl SDK] Run nacl_io_socket_test on the bots. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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 side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/tests/nacl_io_test/main.cc
diff --git a/native_client_sdk/src/tests/nacl_io_test/main.cc b/native_client_sdk/src/tests/nacl_io_test/main.cc
index 772267070073c522b0dd51e45c18264d228a534d..ef7b09433a986c2f103014df6a6d9554903e9fbd 100644
--- a/native_client_sdk/src/tests/nacl_io_test/main.cc
+++ b/native_client_sdk/src/tests/nacl_io_test/main.cc
@@ -50,25 +50,13 @@ class GTestEventListener : public ::testing::EmptyTestEventListener {
<< "," << (test_info.result()->Failed() ? "failed" : "ok");
pp::Instance(PSGetInstanceId()).PostMessage(msg.str());
}
-
- virtual void OnTestProgramEnd(const ::testing::UnitTest&) {
- pp::Instance(PSGetInstanceId()).PostMessage("testend");
- }
};
int example_main(int argc, char* argv[]) {
::testing::InitGoogleTest(&argc, argv);
::testing::UnitTest::GetInstance()->listeners()
.Append(new GTestEventListener());
- int result = RUN_ALL_TESTS();
-
- // When running as an automated test, we don't want the final message
- // ("testend") to be dropped, so don't exit. The web page will kill the
- // plugin if it needs to.
- while(1);
-
- // Silence the warning.
- return result;
+ return RUN_ALL_TESTS();
}
// Register the function to call once the Instance Object is initialized.
« no previous file with comments | « native_client_sdk/src/tests/nacl_io_test/index.html ('k') | native_client_sdk/src/tests/sdk_util_test/example.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698