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

Side by Side Diff: chrome/test/ui/ppapi_uitest.h

Issue 9662055: Test for --nacl-gdb functionality. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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/chrome_tests.gypi ('k') | chrome/test/ui/ppapi_uitest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_TEST_UI_PPAPI_UITEST_H_
6 #define CHROME_TEST_UI_PPAPI_UITEST_H_
7 #pragma once
8
9 #include <string>
10
11 #include "chrome/test/base/in_process_browser_test.h"
12
13 class PPAPITestBase : public InProcessBrowserTest {
14 public:
15 PPAPITestBase();
16
17 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
18
19 virtual std::string BuildQuery(const std::string& base,
20 const std::string& test_case) = 0;
21
22 // Returns the URL to load for file: tests.
23 GURL GetTestFileUrl(const std::string& test_case);
24 void RunTest(const std::string& test_case);
25 // Run the test and reload. This can test for clean shutdown, including leaked
26 // instance object vars.
27 void RunTestAndReload(const std::string& test_case);
28 void RunTestViaHTTP(const std::string& test_case);
29 void RunTestWithWebSocketServer(const std::string& test_case);
30 std::string StripPrefixes(const std::string& test_name);
31
32 protected:
33 // Runs the test for a tab given the tab that's already navigated to the
34 // given URL.
35 void RunTestURL(const GURL& test_url);
36 };
37
38 // In-process plugin test runner. See OutOfProcessPPAPITest below for the
39 // out-of-process version.
40 class PPAPITest : public PPAPITestBase {
41 public:
42 PPAPITest();
43
44 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
45
46 virtual std::string BuildQuery(const std::string& base,
47 const std::string& test_case) OVERRIDE;
48 };
49
50 // Variant of PPAPITest that runs plugins out-of-process to test proxy
51 // codepaths.
52 class OutOfProcessPPAPITest : public PPAPITest {
53 public:
54 OutOfProcessPPAPITest();
55
56 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
57 };
58
59 // NaCl plugin test runner.
60 class PPAPINaClTest : public PPAPITestBase {
61 public:
62 PPAPINaClTest();
63
64 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
65
66 virtual std::string BuildQuery(const std::string& base,
67 const std::string& test_case) OVERRIDE;
68 };
69
70 class PPAPINaClTestDisallowedSockets : public PPAPITestBase {
71 public:
72 PPAPINaClTestDisallowedSockets();
73
74 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
75
76 virtual std::string BuildQuery(const std::string& base,
77 const std::string& test_case) OVERRIDE;
78 };
79
80 #endif // CHROME_TEST_UI_PPAPI_UITEST_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/ui/ppapi_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698