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

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 30 matching lines...) Expand all
41 41
42 // InProcessBrowserTest: 42 // InProcessBrowserTest:
43 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; 43 virtual void SetUpCommandLine(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 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 52 // Run the test and reload. This can test for clean shutdown, including leaked
53 // instance object vars. 53 // instance object vars.
54 void RunTestAndReload(const std::string& test_case); 54 virtual void RunTestAndReload(const std::string& test_case);
55 void RunTestViaHTTP(const std::string& test_case); 55 virtual void RunTestViaHTTP(const std::string& test_case);
56 void RunTestWithSSLServer(const std::string& test_case); 56 virtual void RunTestWithSSLServer(const std::string& test_case);
57 void RunTestWithWebSocketServer(const std::string& test_case); 57 virtual void RunTestWithWebSocketServer(const std::string& test_case);
58 void RunTestIfAudioOutputAvailable(const std::string& test_case); 58 virtual void RunTestIfAudioOutputAvailable(const std::string& test_case);
59 void RunTestViaHTTPIfAudioOutputAvailable(const std::string& test_case); 59 virtual void RunTestViaHTTPIfAudioOutputAvailable(
60 const std::string& test_case);
60 std::string StripPrefixes(const std::string& test_name); 61 std::string StripPrefixes(const std::string& test_name);
61 62
62 protected: 63 protected:
63 class InfoBarObserver : public content::NotificationObserver { 64 class InfoBarObserver : public content::NotificationObserver {
64 public: 65 public:
65 explicit InfoBarObserver(PPAPITestBase* test_base); 66 explicit InfoBarObserver(PPAPITestBase* test_base);
66 ~InfoBarObserver(); 67 ~InfoBarObserver();
67 68
68 void ExpectInfoBarAndAccept(bool should_accept); 69 void ExpectInfoBarAndAccept(bool should_accept);
69 70
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 122
122 class OutOfProcessPPAPIPrivateTest : public OutOfProcessPPAPITest { 123 class OutOfProcessPPAPIPrivateTest : public OutOfProcessPPAPITest {
123 protected: 124 protected:
124 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; 125 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
125 }; 126 };
126 127
127 // NaCl plugin test runner for Newlib runtime. 128 // NaCl plugin test runner for Newlib runtime.
128 class PPAPINaClTest : public PPAPITestBase { 129 class PPAPINaClTest : public PPAPITestBase {
129 public: 130 public:
130 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; 131 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
132 // PPAPITestBase:
raymes 2014/02/19 23:47:08 nit: // PPAPITestBase overrides.
133 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;
136 virtual void RunTestWithSSLServer(const std::string& test_case) OVERRIDE;
137 virtual void RunTestWithWebSocketServer(
138 const std::string& test_case) OVERRIDE;
139 virtual void RunTestIfAudioOutputAvailable(
140 const std::string& test_case) OVERRIDE;
141 virtual void RunTestViaHTTPIfAudioOutputAvailable(
142 const std::string& test_case) OVERRIDE;
131 }; 143 };
132 144
133 // NaCl plugin test runner for Newlib runtime. 145 // NaCl plugin test runner for Newlib runtime.
134 class PPAPINaClNewlibTest : public PPAPINaClTest { 146 class PPAPINaClNewlibTest : public PPAPINaClTest {
135 public: 147 public:
136 virtual std::string BuildQuery(const std::string& base, 148 virtual std::string BuildQuery(const std::string& base,
137 const std::string& test_case) OVERRIDE; 149 const std::string& test_case) OVERRIDE;
138 }; 150 };
139 151
140 class PPAPIPrivateNaClNewlibTest : public PPAPINaClNewlibTest { 152 class PPAPIPrivateNaClNewlibTest : public PPAPINaClNewlibTest {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 const std::string& test_case) OVERRIDE; 186 const std::string& test_case) OVERRIDE;
175 }; 187 };
176 188
177 class PPAPIBrokerInfoBarTest : public OutOfProcessPPAPITest { 189 class PPAPIBrokerInfoBarTest : public OutOfProcessPPAPITest {
178 public: 190 public:
179 // PPAPITestBase override: 191 // PPAPITestBase override:
180 virtual void SetUpOnMainThread() OVERRIDE; 192 virtual void SetUpOnMainThread() OVERRIDE;
181 }; 193 };
182 194
183 #endif // CHROME_TEST_PPAPI_PPAPI_TEST_H_ 195 #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