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

Side by Side Diff: content/test/plugin/plugin_request_read_test.h

Issue 671663002: Standardize usage of virtual/override/final in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_PLUGIN_PLUGIN_REQUEST_READ_TEST_H_ 5 #ifndef CONTENT_TEST_PLUGIN_PLUGIN_REQUEST_READ_TEST_H_
6 #define CONTENT_TEST_PLUGIN_PLUGIN_REQUEST_READ_TEST_H_ 6 #define CONTENT_TEST_PLUGIN_PLUGIN_REQUEST_READ_TEST_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "content/test/plugin/plugin_test.h" 12 #include "content/test/plugin/plugin_test.h"
13 13
14 namespace NPAPIClient { 14 namespace NPAPIClient {
15 15
16 // Tests whether the browser correctly handles single range requests from NPAPI 16 // Tests whether the browser correctly handles single range requests from NPAPI
17 // plugins. 17 // plugins.
18 class PluginRequestReadTest : public PluginTest { 18 class PluginRequestReadTest : public PluginTest {
19 public: 19 public:
20 PluginRequestReadTest(NPP id, NPNetscapeFuncs* host_functions); 20 PluginRequestReadTest(NPP id, NPNetscapeFuncs* host_functions);
21 virtual ~PluginRequestReadTest(); 21 ~PluginRequestReadTest() override;
22 22
23 // 23 //
24 // NPAPI Functions 24 // NPAPI Functions
25 // 25 //
26 virtual NPError New(uint16 mode, int16 argc, const char* argn[], 26 NPError New(uint16 mode,
27 const char* argv[], NPSavedData* saved) override; 27 int16 argc,
28 virtual NPError SetWindow(NPWindow* window) override; 28 const char* argn[],
29 virtual NPError NewStream(NPMIMEType type, NPStream* stream, 29 const char* argv[],
30 NPBool seekable, uint16* stream_type) override; 30 NPSavedData* saved) override;
31 virtual NPError DestroyStream(NPStream *stream, NPError reason) override; 31 NPError SetWindow(NPWindow* window) override;
32 virtual int32 WriteReady(NPStream* stream) override; 32 NPError NewStream(NPMIMEType type,
33 virtual int32 Write(NPStream* stream, int32 offset, int32 len, 33 NPStream* stream,
34 void* buffer) override; 34 NPBool seekable,
35 uint16* stream_type) override;
36 NPError DestroyStream(NPStream* stream, NPError reason) override;
37 int32 WriteReady(NPStream* stream) override;
38 int32 Write(NPStream* stream, int32 offset, int32 len, void* buffer) override;
35 39
36 private: 40 private:
37 // Tracks ranges, which we requested, but for which we did not get response. 41 // Tracks ranges, which we requested, but for which we did not get response.
38 std::vector<NPByteRange> requested_ranges_; 42 std::vector<NPByteRange> requested_ranges_;
39 std::string url_to_request_; 43 std::string url_to_request_;
40 bool tests_started_; 44 bool tests_started_;
41 bool read_requested_; 45 bool read_requested_;
42 }; 46 };
43 47
44 } // namespace NPAPIClient 48 } // namespace NPAPIClient
45 49
46 #endif // CONTENT_TEST_PLUGIN_PLUGIN_REQUEST_READ_TEST_H_ 50 #endif // CONTENT_TEST_PLUGIN_PLUGIN_REQUEST_READ_TEST_H_
47 51
OLDNEW
« no previous file with comments | « content/test/plugin/plugin_private_test.h ('k') | content/test/plugin/plugin_schedule_timer_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698