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) { |