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

Side by Side Diff: chrome/test/ppapi/ppapi_test.h

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/test/ppapi/ppapi_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
42 // InProcessBrowserTest: 42 // InProcessBrowserTest:
43 virtual void SetUp() OVERRIDE; 43 virtual void SetUp() OVERRIDE;
44 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; 44 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
45 virtual void SetUpOnMainThread() OVERRIDE; 45 virtual void SetUpOnMainThread() OVERRIDE;
46 46
47 virtual std::string BuildQuery(const std::string& base, 47 virtual std::string BuildQuery(const std::string& base,
48 const std::string& test_case) = 0; 48 const std::string& test_case) = 0;
49 49
50 // Returns the URL to load for file: tests. 50 // Returns the URL to load for file: tests.
51 GURL GetTestFileUrl(const std::string& test_case); 51 GURL GetTestFileUrl(const std::string& test_case);
52 void RunTest(const std::string& test_case); 52 virtual void RunTest(const std::string& test_case);
53 // Run the test and reload. This can test for clean shutdown, including leaked 53 // Run the test and reload. This can test for clean shutdown, including leaked
54 // instance object vars. 54 // instance object vars.
55 void RunTestAndReload(const std::string& test_case); 55 virtual void RunTestAndReload(const std::string& test_case);
56 void RunTestViaHTTP(const std::string& test_case); 56 virtual void RunTestViaHTTP(const std::string& test_case);
57 void RunTestWithSSLServer(const std::string& test_case); 57 virtual void RunTestWithSSLServer(const std::string& test_case);
58 void RunTestWithWebSocketServer(const std::string& test_case); 58 virtual void RunTestWithWebSocketServer(const std::string& test_case);
59 void RunTestIfAudioOutputAvailable(const std::string& test_case); 59 virtual void RunTestIfAudioOutputAvailable(const std::string& test_case);
60 void RunTestViaHTTPIfAudioOutputAvailable(const std::string& test_case); 60 virtual void RunTestViaHTTPIfAudioOutputAvailable(
61 const std::string& test_case);
61 std::string StripPrefixes(const std::string& test_name); 62 std::string StripPrefixes(const std::string& test_name);
62 63
63 protected: 64 protected:
64 class InfoBarObserver : public content::NotificationObserver { 65 class InfoBarObserver : public content::NotificationObserver {
65 public: 66 public:
66 explicit InfoBarObserver(PPAPITestBase* test_base); 67 explicit InfoBarObserver(PPAPITestBase* test_base);
67 ~InfoBarObserver(); 68 ~InfoBarObserver();
68 69
69 void ExpectInfoBarAndAccept(bool should_accept); 70 void ExpectInfoBarAndAccept(bool should_accept);
70 71
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 123
123 class OutOfProcessPPAPIPrivateTest : public OutOfProcessPPAPITest { 124 class OutOfProcessPPAPIPrivateTest : public OutOfProcessPPAPITest {
124 protected: 125 protected:
125 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; 126 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
126 }; 127 };
127 128
128 // NaCl plugin test runner for Newlib runtime. 129 // NaCl plugin test runner for Newlib runtime.
129 class PPAPINaClTest : public PPAPITestBase { 130 class PPAPINaClTest : public PPAPITestBase {
130 public: 131 public:
131 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; 132 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
133 // PPAPITestBase overrides.
134 virtual void RunTest(const std::string& test_case) OVERRIDE;
135 virtual void RunTestAndReload(const std::string& test_case) OVERRIDE;
136 virtual void RunTestViaHTTP(const std::string& test_case) OVERRIDE;
137 virtual void RunTestWithSSLServer(const std::string& test_case) OVERRIDE;
138 virtual void RunTestWithWebSocketServer(
139 const std::string& test_case) OVERRIDE;
140 virtual void RunTestIfAudioOutputAvailable(
141 const std::string& test_case) OVERRIDE;
142 virtual void RunTestViaHTTPIfAudioOutputAvailable(
143 const std::string& test_case) OVERRIDE;
132 }; 144 };
133 145
134 // NaCl plugin test runner for Newlib runtime. 146 // NaCl plugin test runner for Newlib runtime.
135 class PPAPINaClNewlibTest : public PPAPINaClTest { 147 class PPAPINaClNewlibTest : public PPAPINaClTest {
136 public: 148 public:
137 virtual std::string BuildQuery(const std::string& base, 149 virtual std::string BuildQuery(const std::string& base,
138 const std::string& test_case) OVERRIDE; 150 const std::string& test_case) OVERRIDE;
139 }; 151 };
140 152
141 class PPAPIPrivateNaClNewlibTest : public PPAPINaClNewlibTest { 153 class PPAPIPrivateNaClNewlibTest : public PPAPINaClNewlibTest {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 const std::string& test_case) OVERRIDE; 187 const std::string& test_case) OVERRIDE;
176 }; 188 };
177 189
178 class PPAPIBrokerInfoBarTest : public OutOfProcessPPAPITest { 190 class PPAPIBrokerInfoBarTest : public OutOfProcessPPAPITest {
179 public: 191 public:
180 // PPAPITestBase override: 192 // PPAPITestBase override:
181 virtual void SetUpOnMainThread() OVERRIDE; 193 virtual void SetUpOnMainThread() OVERRIDE;
182 }; 194 };
183 195
184 #endif // CHROME_TEST_PPAPI_PPAPI_TEST_H_ 196 #endif // CHROME_TEST_PPAPI_PPAPI_TEST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/test/ppapi/ppapi_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698