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

Unified Diff: chrome/test/ppapi/ppapi_test.cc

Issue 150663007: Disable PPAPI*NaCl* tests in the disable_nacl=1 builds (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 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
« chrome/test/ppapi/ppapi_test.h ('K') | « chrome/test/ppapi/ppapi_test.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/ppapi/ppapi_test.cc
===================================================================
--- chrome/test/ppapi/ppapi_test.cc (revision 251733)
+++ chrome/test/ppapi/ppapi_test.cc (working copy)
@@ -346,8 +346,17 @@
AddPrivateSwitches(command_line);
}
+#if defined(DISABLE_NACL)
raymes 2014/02/18 23:20:08 Consider putting this right at the top of the file
Alexander Potapenko 2014/02/19 13:47:02 Done.
+#define RETURN_IF_NO_NACL() do { \
+ LOG(WARNING) << "This test always passes with disable_nacl=1."; \
+ return; } while (0)
+#else
+#define RETURN_IF_NO_NACL() do { } while (0)
+#endif
+
void PPAPINaClTest::SetUpCommandLine(CommandLine* command_line) {
PPAPITestBase::SetUpCommandLine(command_line);
+ RETURN_IF_NO_NACL();
raymes 2014/02/18 23:20:08 Should this just go right at the top of the functi
Alexander Potapenko 2014/02/19 13:47:02 Done.
base::FilePath plugin_lib;
EXPECT_TRUE(PathService::Get(chrome::FILE_NACL_PLUGIN, &plugin_lib));
@@ -360,6 +369,38 @@
command_line->AppendSwitch(switches::kUseFakeUIForMediaStream);
}
+void PPAPINaClTest::RunTestAndReload(const std::string& test_case) {
+ RETURN_IF_NO_NACL();
+ PPAPITestBase::RunTestAndReload(test_case);
+}
+
+void PPAPINaClTest::RunTestViaHTTP(const std::string& test_case) {
+ RETURN_IF_NO_NACL();
+ PPAPITestBase::RunTestViaHTTP(test_case);
+}
+
+void PPAPINaClTest::RunTestWithSSLServer(const std::string& test_case) {
+ RETURN_IF_NO_NACL();
+ PPAPITestBase::RunTestWithSSLServer(test_case);
+}
+
+void PPAPINaClTest::RunTestWithWebSocketServer(const std::string& test_case) {
+ RETURN_IF_NO_NACL();
+ PPAPITestBase::RunTestWithWebSocketServer(test_case);
+}
+
+void PPAPINaClTest::RunTestIfAudioOutputAvailable(
+ const std::string& test_case) {
+ RETURN_IF_NO_NACL();
+ PPAPITestBase::RunTestIfAudioOutputAvailable(test_case);
+}
+
+void PPAPINaClTest::RunTestViaHTTPIfAudioOutputAvailable(
+ const std::string& test_case) {
raymes 2014/02/18 23:20:08 indentation is slightly off - 2 spaces too many I
Alexander Potapenko 2014/02/19 13:47:02 Done.
+ RETURN_IF_NO_NACL();
+ PPAPITestBase::RunTestViaHTTPIfAudioOutputAvailable(test_case);
+}
+
// Append the correct mode and testcase string
std::string PPAPINaClNewlibTest::BuildQuery(const std::string& base,
const std::string& test_case) {
« chrome/test/ppapi/ppapi_test.h ('K') | « chrome/test/ppapi/ppapi_test.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698