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

Unified Diff: webkit/plugins/npapi/test/plugin_request_read_test.h

Issue 19697013: Move NPAPI test plugin to content/test/plugin. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: webkit/plugins/npapi/test/plugin_request_read_test.h
===================================================================
--- webkit/plugins/npapi/test/plugin_request_read_test.h (revision 212513)
+++ webkit/plugins/npapi/test/plugin_request_read_test.h (working copy)
@@ -1,47 +0,0 @@
-// Copyright 2013 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 WEBKIT_PLUGINS_NPAPI_TEST_PLUGIN_REQUEST_READ_TEST_H_
-#define WEBKIT_PLUGINS_NPAPI_TEST_PLUGIN_REQUEST_READ_TEST_H_
-
-#include <string>
-#include <vector>
-
-#include "base/compiler_specific.h"
-#include "webkit/plugins/npapi/test/plugin_test.h"
-
-namespace NPAPIClient {
-
-// Tests whether the browser correctly handles single range requests from NPAPI
-// plugins.
-class PluginRequestReadTest : public PluginTest {
- public:
- PluginRequestReadTest(NPP id, NPNetscapeFuncs* host_functions);
- virtual ~PluginRequestReadTest();
-
- //
- // NPAPI Functions
- //
- virtual NPError New(uint16 mode, int16 argc, const char* argn[],
- const char* argv[], NPSavedData* saved) OVERRIDE;
- virtual NPError SetWindow(NPWindow* window) OVERRIDE;
- virtual NPError NewStream(NPMIMEType type, NPStream* stream,
- NPBool seekable, uint16* stream_type) OVERRIDE;
- virtual NPError DestroyStream(NPStream *stream, NPError reason) OVERRIDE;
- virtual int32 WriteReady(NPStream* stream) OVERRIDE;
- virtual int32 Write(NPStream* stream, int32 offset, int32 len,
- void* buffer) OVERRIDE;
-
- private:
- // Tracks ranges, which we requested, but for which we did not get response.
- std::vector<NPByteRange> requested_ranges_;
- std::string url_to_request_;
- bool tests_started_;
- bool read_requested_;
-};
-
-} // namespace NPAPIClient
-
-#endif // WEBKIT_PLUGINS_NPAPI_TEST_PLUGIN_REQUEST_READ_TEST_H_
-
« no previous file with comments | « webkit/plugins/npapi/test/plugin_private_test.cc ('k') | webkit/plugins/npapi/test/plugin_request_read_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698