summaryrefslogtreecommitdiffstats
path: root/chrome/test
diff options
context:
space:
mode:
authorfischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-10 02:30:00 +0000
committerfischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-10 02:30:00 +0000
commit32523380fc0111a95540f5a860184d8917270375 (patch)
tree19fad940c6817d50ea5ff68aab42fb504893fa6e /chrome/test
parent2e7617c01514a05eb6c3db651259701131e3b85a (diff)
downloadchromium_src-32523380fc0111a95540f5a860184d8917270375.zip
chromium_src-32523380fc0111a95540f5a860184d8917270375.tar.gz
chromium_src-32523380fc0111a95540f5a860184d8917270375.tar.bz2
Implement out-of-process proxy for PPB_Buffer_Dev.
BUG=85427,85441 TEST=./ninja/ui_tests --gtest_filter=*PPAPITest.Buffer Review URL: http://codereview.chromium.org/7108051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88630 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test')
-rw-r--r--chrome/test/ui/ppapi_uitest.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/chrome/test/ui/ppapi_uitest.cc b/chrome/test/ui/ppapi_uitest.cc
index ed42e13..22dde52 100644
--- a/chrome/test/ui/ppapi_uitest.cc
+++ b/chrome/test/ui/ppapi_uitest.cc
@@ -26,6 +26,8 @@ const char library_name[] = "libppapi_tests.so";
} // namespace
+// In-process plugin test runner. See OutOfProcessPPAPITest below for the
+// out-of-process version.
class PPAPITest : public UITest {
public:
PPAPITest() {
@@ -116,6 +118,16 @@ class PPAPITest : public UITest {
}
};
+// Variant of PPAPITest that runs plugins out-of-process to test proxy
+// codepaths.
+class OutOfProcessPPAPITest : public PPAPITest {
+ public:
+ OutOfProcessPPAPITest() {
+ // Run PPAPI out-of-process to exercise proxy implementations.
+ launch_arguments_.AppendSwitch(switches::kPpapiOutOfProcess);
+ }
+};
+
TEST_F(PPAPITest, Broker) {
RunTest("Broker");
}
@@ -139,6 +151,11 @@ TEST_F(PPAPITest, ImageData) {
TEST_F(PPAPITest, Buffer) {
RunTest("Buffer");
}
+#if !defined(OS_MACOSX)
+TEST_F(OutOfProcessPPAPITest, Buffer) {
+ RunTest("Buffer");
+}
+#endif
TEST_F(PPAPITest, URLLoader) {
RunTestViaHTTP("URLLoader");