| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_TEST_PPAPI_PPAPI_TEST_H_ | 5 #ifndef CHROME_TEST_PPAPI_PPAPI_TEST_H_ |
| 6 #define CHROME_TEST_PPAPI_PPAPI_TEST_H_ | 6 #define CHROME_TEST_PPAPI_PPAPI_TEST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 virtual void SetUp() OVERRIDE; | 42 virtual void SetUp() OVERRIDE; |
| 43 virtual void SetUpCommandLine(base::CommandLine* command_line) OVERRIDE; | 43 virtual void SetUpCommandLine(base::CommandLine* command_line) OVERRIDE; |
| 44 virtual void SetUpOnMainThread() OVERRIDE; | 44 virtual void SetUpOnMainThread() OVERRIDE; |
| 45 | 45 |
| 46 virtual std::string BuildQuery(const std::string& base, | 46 virtual std::string BuildQuery(const std::string& base, |
| 47 const std::string& test_case) = 0; | 47 const std::string& test_case) = 0; |
| 48 | 48 |
| 49 // Returns the URL to load for file: tests. | 49 // Returns the URL to load for file: tests. |
| 50 GURL GetTestFileUrl(const std::string& test_case); | 50 GURL GetTestFileUrl(const std::string& test_case); |
| 51 virtual void RunTest(const std::string& test_case); | 51 virtual void RunTest(const std::string& test_case); |
| 52 // Run the test and reload. This can test for clean shutdown, including leaked | |
| 53 // instance object vars. | |
| 54 virtual void RunTestAndReload(const std::string& test_case); | |
| 55 virtual void RunTestViaHTTP(const std::string& test_case); | 52 virtual void RunTestViaHTTP(const std::string& test_case); |
| 56 virtual void RunTestWithSSLServer(const std::string& test_case); | 53 virtual void RunTestWithSSLServer(const std::string& test_case); |
| 57 virtual void RunTestWithWebSocketServer(const std::string& test_case); | 54 virtual void RunTestWithWebSocketServer(const std::string& test_case); |
| 58 virtual void RunTestIfAudioOutputAvailable(const std::string& test_case); | 55 virtual void RunTestIfAudioOutputAvailable(const std::string& test_case); |
| 59 virtual void RunTestViaHTTPIfAudioOutputAvailable( | 56 virtual void RunTestViaHTTPIfAudioOutputAvailable( |
| 60 const std::string& test_case); | 57 const std::string& test_case); |
| 61 | 58 |
| 62 protected: | 59 protected: |
| 63 class InfoBarObserver : public content::NotificationObserver { | 60 class InfoBarObserver : public content::NotificationObserver { |
| 64 public: | 61 public: |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 virtual void SetUpCommandLine(base::CommandLine* command_line) OVERRIDE; | 121 virtual void SetUpCommandLine(base::CommandLine* command_line) OVERRIDE; |
| 125 }; | 122 }; |
| 126 | 123 |
| 127 // NaCl plugin test runner for Newlib runtime. | 124 // NaCl plugin test runner for Newlib runtime. |
| 128 class PPAPINaClTest : public PPAPITestBase { | 125 class PPAPINaClTest : public PPAPITestBase { |
| 129 public: | 126 public: |
| 130 virtual void SetUpCommandLine(base::CommandLine* command_line) OVERRIDE; | 127 virtual void SetUpCommandLine(base::CommandLine* command_line) OVERRIDE; |
| 131 virtual void SetUpOnMainThread() OVERRIDE; | 128 virtual void SetUpOnMainThread() OVERRIDE; |
| 132 // PPAPITestBase overrides. | 129 // PPAPITestBase overrides. |
| 133 virtual void RunTest(const std::string& test_case) OVERRIDE; | 130 virtual void RunTest(const std::string& test_case) OVERRIDE; |
| 134 virtual void RunTestAndReload(const std::string& test_case) OVERRIDE; | |
| 135 virtual void RunTestViaHTTP(const std::string& test_case) OVERRIDE; | 131 virtual void RunTestViaHTTP(const std::string& test_case) OVERRIDE; |
| 136 virtual void RunTestWithSSLServer(const std::string& test_case) OVERRIDE; | 132 virtual void RunTestWithSSLServer(const std::string& test_case) OVERRIDE; |
| 137 virtual void RunTestWithWebSocketServer( | 133 virtual void RunTestWithWebSocketServer( |
| 138 const std::string& test_case) OVERRIDE; | 134 const std::string& test_case) OVERRIDE; |
| 139 virtual void RunTestIfAudioOutputAvailable( | 135 virtual void RunTestIfAudioOutputAvailable( |
| 140 const std::string& test_case) OVERRIDE; | 136 const std::string& test_case) OVERRIDE; |
| 141 virtual void RunTestViaHTTPIfAudioOutputAvailable( | 137 virtual void RunTestViaHTTPIfAudioOutputAvailable( |
| 142 const std::string& test_case) OVERRIDE; | 138 const std::string& test_case) OVERRIDE; |
| 143 }; | 139 }; |
| 144 | 140 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 const std::string& test_case) OVERRIDE; | 196 const std::string& test_case) OVERRIDE; |
| 201 }; | 197 }; |
| 202 | 198 |
| 203 class PPAPIBrokerInfoBarTest : public OutOfProcessPPAPITest { | 199 class PPAPIBrokerInfoBarTest : public OutOfProcessPPAPITest { |
| 204 public: | 200 public: |
| 205 // PPAPITestBase override: | 201 // PPAPITestBase override: |
| 206 virtual void SetUpOnMainThread() OVERRIDE; | 202 virtual void SetUpOnMainThread() OVERRIDE; |
| 207 }; | 203 }; |
| 208 | 204 |
| 209 #endif // CHROME_TEST_PPAPI_PPAPI_TEST_H_ | 205 #endif // CHROME_TEST_PPAPI_PPAPI_TEST_H_ |
| OLD | NEW |