| OLD | NEW |
| 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 WEBKIT_PLUGINS_NPAPI_TEST_PLUGIN_REQUEST_READ_TEST_H_ | 5 #ifndef CONTENT_TEST_PLUGIN_PLUGIN_REQUEST_READ_TEST_H_ |
| 6 #define WEBKIT_PLUGINS_NPAPI_TEST_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 "webkit/plugins/npapi/test/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 virtual ~PluginRequestReadTest(); |
| 22 | 22 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 36 private: | 36 private: |
| 37 // Tracks ranges, which we requested, but for which we did not get response. | 37 // Tracks ranges, which we requested, but for which we did not get response. |
| 38 std::vector<NPByteRange> requested_ranges_; | 38 std::vector<NPByteRange> requested_ranges_; |
| 39 std::string url_to_request_; | 39 std::string url_to_request_; |
| 40 bool tests_started_; | 40 bool tests_started_; |
| 41 bool read_requested_; | 41 bool read_requested_; |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 } // namespace NPAPIClient | 44 } // namespace NPAPIClient |
| 45 | 45 |
| 46 #endif // WEBKIT_PLUGINS_NPAPI_TEST_PLUGIN_REQUEST_READ_TEST_H_ | 46 #endif // CONTENT_TEST_PLUGIN_PLUGIN_REQUEST_READ_TEST_H_ |
| 47 | 47 |
| OLD | NEW |