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

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
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 void RunTestViaHTTP(const std::string& test_case);
26 void RunTestWithWebSocketServer(const std::string& test_case);
27 std::string StripPrefixes(const std::string& test_name);
28
29 protected:
30 // Runs the test for a tab given the tab that's already navigated to the
31 // given URL.
32 void RunTestURL(const GURL& test_url);
33 };
34
35 // In-process plugin test runner. See OutOfProcessPPAPITest below for the
36 // out-of-process version.
37 class PPAPITest : public PPAPITestBase {
38 public:
39 PPAPITest();
40
41 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
42
43 virtual std::string BuildQuery(const std::string& base,
44 const std::string& test_case) OVERRIDE;
45 };
46
47 // Variant of PPAPITest that runs plugins out-of-process to test proxy
48 // codepaths.
49 class OutOfProcessPPAPITest : public PPAPITest {
50 public:
51 OutOfProcessPPAPITest();
52
53 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
54 };
55
56 // NaCl plugin test runner.
57 class PPAPINaClTest : public PPAPITestBase {
58 public:
59 PPAPINaClTest();
60
61 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
62
63 virtual std::string BuildQuery(const std::string& base,
64 const std::string& test_case) OVERRIDE;
65 };
66
67 class PPAPINaClTestDisallowedSockets : public PPAPITestBase {
68 public:
69 PPAPINaClTestDisallowedSockets();
70
71 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
72
73 virtual std::string BuildQuery(const std::string& base,
74 const std::string& test_case) OVERRIDE;
75 };
76 #endif // CHROME_TEST_UI_PPAPI_UITEST_H_
brettw 2012/03/13 05:57:49 Blank like before this.
halyavin 2012/03/13 12:48:27 Done.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698