summaryrefslogtreecommitdiffstats
path: root/content/test/plugin/plugin_execute_stream_javascript.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-19 05:20:24 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-19 05:20:24 +0000
commita4009afb741c75168649fc5c9343c7978480b5f5 (patch)
tree928dd58608fe5a9320c9b190db88de865b13bc6b /content/test/plugin/plugin_execute_stream_javascript.h
parentdd167bd80345aba642d2ea62542711543cf97142 (diff)
downloadchromium_src-a4009afb741c75168649fc5c9343c7978480b5f5.zip
chromium_src-a4009afb741c75168649fc5c9343c7978480b5f5.tar.gz
chromium_src-a4009afb741c75168649fc5c9343c7978480b5f5.tar.bz2
Move NPAPI test plugin to content/test/plugin.
BUG=237249 R=scottmg@chromium.org Review URL: https://codereview.chromium.org/19697013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212530 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/test/plugin/plugin_execute_stream_javascript.h')
-rw-r--r--content/test/plugin/plugin_execute_stream_javascript.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/content/test/plugin/plugin_execute_stream_javascript.h b/content/test/plugin/plugin_execute_stream_javascript.h
new file mode 100644
index 0000000..6a3996e
--- /dev/null
+++ b/content/test/plugin/plugin_execute_stream_javascript.h
@@ -0,0 +1,32 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_TEST_PLUGIN_PLUGIN_EXECUTE_STREAM_JAVASCRIPT_H_
+#define CONTENT_TEST_PLUGIN_PLUGIN_EXECUTE_STREAM_JAVASCRIPT_H_
+
+#include "base/compiler_specific.h"
+#include "content/test/plugin/plugin_test.h"
+
+namespace NPAPIClient {
+
+// This class tests executes the JavaScript given in the stream URL.
+class ExecuteStreamJavaScript : public PluginTest {
+ public:
+ // Constructor.
+ ExecuteStreamJavaScript(NPP id, NPNetscapeFuncs *host_functions);
+
+ //
+ // NPAPI functions
+ //
+ virtual NPError NewStream(NPMIMEType type, NPStream* stream,
+ NPBool seekable, uint16* stype) OVERRIDE;
+ virtual int32 WriteReady(NPStream *stream) OVERRIDE;
+ virtual int32 Write(NPStream *stream, int32 offset, int32 len,
+ void *buffer) OVERRIDE;
+ virtual NPError DestroyStream(NPStream *stream, NPError reason) OVERRIDE;
+};
+
+} // namespace NPAPIClient
+
+#endif // CONTENT_TEST_PLUGIN_PLUGIN_EXECUTE_STREAM_JAVASCRIPT_H_