summaryrefslogtreecommitdiffstats
path: root/chrome/test/ppapi/ppapi_test.h
diff options
context:
space:
mode:
authorbbudge@chromium.org <bbudge@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-26 18:43:13 +0000
committerbbudge@chromium.org <bbudge@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-26 18:43:13 +0000
commit8c04d00b502df0f8e1d4c2f9397eb4540943007c (patch)
treeed5ea3da241795da890d6706ee884189312d61b7 /chrome/test/ppapi/ppapi_test.h
parent1f48f758c388b0f402e5c166a4d63b7460c7dfa4 (diff)
downloadchromium_src-8c04d00b502df0f8e1d4c2f9397eb4540943007c.zip
chromium_src-8c04d00b502df0f8e1d4c2f9397eb4540943007c.tar.gz
chromium_src-8c04d00b502df0f8e1d4c2f9397eb4540943007c.tar.bz2
Pepper browser tests: Only grant private permissions to private tests.
This allows us to exercise the quota checking machinery for PPB_FileIO. BUG=194304 Review URL: https://codereview.chromium.org/115693008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242545 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/ppapi/ppapi_test.h')
-rw-r--r--chrome/test/ppapi/ppapi_test.h29
1 files changed, 25 insertions, 4 deletions
diff --git a/chrome/test/ppapi/ppapi_test.h b/chrome/test/ppapi/ppapi_test.h
index ed9265b..fb5e6c73 100644
--- a/chrome/test/ppapi/ppapi_test.h
+++ b/chrome/test/ppapi/ppapi_test.h
@@ -89,10 +89,6 @@ class PPAPITestBase : public InProcessBrowserTest {
GURL GetTestURL(const net::SpawnedTestServer& http_server,
const std::string& test_case,
const std::string& extra_params);
-
- // Return the document root for the HTTP server on which tests will be run.
- // The result is placed in |document_root|. False is returned upon failure.
- bool GetHTTPDocumentRoot(base::FilePath* document_root);
};
// In-process plugin test runner. See OutOfProcessPPAPITest below for the
@@ -109,6 +105,11 @@ class PPAPITest : public PPAPITestBase {
bool in_process_; // Controls the --ppapi-in-process switch.
};
+class PPAPIPrivateTest : public PPAPITest {
+ protected:
+ virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
+};
+
// Variant of PPAPITest that runs plugins out-of-process to test proxy
// codepaths.
class OutOfProcessPPAPITest : public PPAPITest {
@@ -118,6 +119,11 @@ class OutOfProcessPPAPITest : public PPAPITest {
virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
};
+class OutOfProcessPPAPIPrivateTest : public OutOfProcessPPAPITest {
+ protected:
+ virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
+};
+
// NaCl plugin test runner for Newlib runtime.
class PPAPINaClTest : public PPAPITestBase {
public:
@@ -131,6 +137,11 @@ class PPAPINaClNewlibTest : public PPAPINaClTest {
const std::string& test_case) OVERRIDE;
};
+class PPAPIPrivateNaClNewlibTest : public PPAPINaClNewlibTest {
+ protected:
+ virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
+};
+
// NaCl plugin test runner for GNU-libc runtime.
class PPAPINaClGLibcTest : public PPAPINaClTest {
public:
@@ -138,6 +149,11 @@ class PPAPINaClGLibcTest : public PPAPINaClTest {
const std::string& test_case) OVERRIDE;
};
+class PPAPIPrivateNaClGLibcTest : public PPAPINaClGLibcTest {
+ protected:
+ virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
+};
+
// NaCl plugin test runner for the PNaCl + Newlib runtime.
class PPAPINaClPNaClTest : public PPAPINaClTest {
public:
@@ -145,6 +161,11 @@ class PPAPINaClPNaClTest : public PPAPINaClTest {
const std::string& test_case) OVERRIDE;
};
+class PPAPIPrivateNaClPNaClTest : public PPAPINaClPNaClTest {
+ protected:
+ virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
+};
+
class PPAPINaClTestDisallowedSockets : public PPAPITestBase {
public:
virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;