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

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

Issue 303313002: Pepper: Move more stuff to content_browsertests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move some tests back Created 6 years, 6 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 | « chrome/test/ppapi/ppapi_browsertest.cc ('k') | 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 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
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
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_
OLDNEW
« no previous file with comments | « chrome/test/ppapi/ppapi_browsertest.cc ('k') | chrome/test/ppapi/ppapi_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698