OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CONTENT_TEST_PPAPI_PPAPI_TEST_H_ | 5 #ifndef CONTENT_TEST_PPAPI_PPAPI_TEST_H_ |
6 #define CONTENT_TEST_PPAPI_PPAPI_TEST_H_ | 6 #define CONTENT_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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 // ContentBrowserTest overrides. | 48 // ContentBrowserTest overrides. |
49 virtual void SetUpCommandLine(base::CommandLine* command_line) OVERRIDE; | 49 virtual void SetUpCommandLine(base::CommandLine* command_line) OVERRIDE; |
50 | 50 |
51 virtual std::string BuildQuery(const std::string& base, | 51 virtual std::string BuildQuery(const std::string& base, |
52 const std::string& test_case) = 0; | 52 const std::string& test_case) = 0; |
53 | 53 |
54 // Returns the URL to load for file: tests. | 54 // Returns the URL to load for file: tests. |
55 GURL GetTestFileUrl(const std::string& test_case); | 55 GURL GetTestFileUrl(const std::string& test_case); |
56 virtual void RunTest(const std::string& test_case); | 56 virtual void RunTest(const std::string& test_case); |
57 | 57 |
| 58 // Run the test and reload. This can test for clean shutdown, including |
| 59 // leaked instance object vars. |
| 60 virtual void RunTestAndReload(const std::string& test_case); |
| 61 |
58 protected: | 62 protected: |
59 // Runs the test for a tab given the tab that's already navigated to the | 63 // Runs the test for a tab given the tab that's already navigated to the |
60 // given URL. | 64 // given URL. |
61 void RunTestURL(const GURL& test_url); | 65 void RunTestURL(const GURL& test_url); |
62 }; | 66 }; |
63 | 67 |
64 // In-process plugin test runner. See OutOfProcessPPAPITest below for the | 68 // In-process plugin test runner. See OutOfProcessPPAPITest below for the |
65 // out-of-process version. | 69 // out-of-process version. |
66 class PPAPITest : public PPAPITestBase { | 70 class PPAPITest : public PPAPITestBase { |
67 public: | 71 public: |
(...skipping 10 matching lines...) Expand all Loading... |
78 // Variant of PPAPITest that runs plugins out-of-process to test proxy | 82 // Variant of PPAPITest that runs plugins out-of-process to test proxy |
79 // codepaths. | 83 // codepaths. |
80 class OutOfProcessPPAPITest : public PPAPITest { | 84 class OutOfProcessPPAPITest : public PPAPITest { |
81 public: | 85 public: |
82 OutOfProcessPPAPITest(); | 86 OutOfProcessPPAPITest(); |
83 }; | 87 }; |
84 | 88 |
85 } // namespace | 89 } // namespace |
86 | 90 |
87 #endif // CONTENT_TEST_PPAPI_PPAPI_TEST_H_ | 91 #endif // CONTENT_TEST_PPAPI_PPAPI_TEST_H_ |
OLD | NEW |