OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // Tests exercising the Chrome Plugin API. | 4 // Tests exercising the Chrome Plugin API. |
5 | 5 |
6 #include "base/file_util.h" | 6 #include "base/file_util.h" |
7 #include "base/message_loop_proxy.h" | 7 #include "base/message_loop_proxy.h" |
8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
10 #include "chrome/browser/browser_thread.h" | 10 #include "chrome/browser/browser_thread.h" |
11 #include "chrome/browser/chrome_plugin_host.h" | 11 #include "chrome/browser/chrome_plugin_host.h" |
12 #include "chrome/browser/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
13 #include "chrome/common/chrome_plugin_lib.h" | 13 #include "chrome/common/chrome_plugin_lib.h" |
14 #include "chrome/common/net/url_request_context_getter.h" | 14 #include "chrome/common/net/url_request_context_getter.h" |
15 #include "chrome/test/chrome_plugin/test_chrome_plugin.h" | 15 #include "chrome/test/chrome_plugin/test_chrome_plugin.h" |
16 #include "net/base/io_buffer.h" | 16 #include "net/base/io_buffer.h" |
17 #include "net/http/http_response_headers.h" | 17 #include "net/http/http_response_headers.h" |
18 #include "net/url_request/url_request_test_job.h" | 18 #include "net/url_request/url_request_test_job.h" |
19 #include "net/url_request/url_request_unittest.h" | 19 #include "net/url_request/url_request_unittest.h" |
20 #include "net/test/test_server.h" | 20 #include "net/test/test_server.h" |
21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
22 | 22 |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 TEST_F(ChromePluginTest, DoesNotInterceptOwnRequest) { | 300 TEST_F(ChromePluginTest, DoesNotInterceptOwnRequest) { |
301 const TestResponsePayload& payload = kChromeTestPluginPayloads[0]; | 301 const TestResponsePayload& payload = kChromeTestPluginPayloads[0]; |
302 | 302 |
303 EXPECT_EQ(CPERR_SUCCESS, test_funcs_.test_make_request( | 303 EXPECT_EQ(CPERR_SUCCESS, test_funcs_.test_make_request( |
304 "GET", GURL(payload.url))); | 304 "GET", GURL(payload.url))); |
305 | 305 |
306 MessageLoop::current()->Run(); | 306 MessageLoop::current()->Run(); |
307 } | 307 } |
308 | 308 |
309 } // namespace | 309 } // namespace |
OLD | NEW |