OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_GETURL_TEST_H_ | 5 #ifndef CONTENT_TEST_PLUGIN_PLUGIN_GETURL_TEST_H_ |
6 #define WEBKIT_PLUGINS_NPAPI_TEST_PLUGIN_GETURL_TEST_H_ | 6 #define CONTENT_TEST_PLUGIN_PLUGIN_GETURL_TEST_H_ |
7 | 7 |
8 #include <stdio.h> | 8 #include <stdio.h> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "webkit/plugins/npapi/test/plugin_test.h" | 11 #include "content/test/plugin/plugin_test.h" |
12 | 12 |
13 namespace NPAPIClient { | 13 namespace NPAPIClient { |
14 | 14 |
15 // The PluginGetURLTest test functionality of the NPN_GetURL | 15 // The PluginGetURLTest test functionality of the NPN_GetURL |
16 // and NPN_GetURLNotify methods. | 16 // and NPN_GetURLNotify methods. |
17 // | 17 // |
18 // This test first discovers it's URL by sending a GetURL request | 18 // This test first discovers it's URL by sending a GetURL request |
19 // for 'javascript:top.location'. After receiving that, the | 19 // for 'javascript:top.location'. After receiving that, the |
20 // test will request the url itself (again via GetURL). | 20 // test will request the url itself (again via GetURL). |
21 class PluginGetURLTest : public PluginTest { | 21 class PluginGetURLTest : public PluginTest { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 // plugins. | 54 // plugins. |
55 bool handle_url_redirects_; | 55 bool handle_url_redirects_; |
56 bool received_url_redirect_notification_; | 56 bool received_url_redirect_notification_; |
57 std::string page_not_found_url_; | 57 std::string page_not_found_url_; |
58 std::string fail_write_url_; | 58 std::string fail_write_url_; |
59 std::string referrer_target_url_; | 59 std::string referrer_target_url_; |
60 }; | 60 }; |
61 | 61 |
62 } // namespace NPAPIClient | 62 } // namespace NPAPIClient |
63 | 63 |
64 #endif // WEBKIT_PLUGINS_NPAPI_TEST_PLUGIN_GETURL_TEST_H_ | 64 #endif // CONTENT_TEST_PLUGIN_PLUGIN_GETURL_TEST_H_ |
OLD | NEW |