| 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/path_service.h" | 7 #include "base/path_service.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "chrome/browser/chrome_plugin_host.h" | 9 #include "chrome/browser/chrome_plugin_host.h" |
| 10 #include "chrome/browser/net/url_fetcher.h" | |
| 11 #include "chrome/browser/profile.h" | 10 #include "chrome/browser/profile.h" |
| 12 #include "chrome/common/chrome_plugin_lib.h" | 11 #include "chrome/common/chrome_plugin_lib.h" |
| 13 #include "chrome/test/chrome_plugin/test_chrome_plugin.h" | 12 #include "chrome/test/chrome_plugin/test_chrome_plugin.h" |
| 14 #include "net/base/io_buffer.h" | 13 #include "net/base/io_buffer.h" |
| 15 #include "net/http/http_response_headers.h" | 14 #include "net/http/http_response_headers.h" |
| 16 #include "net/url_request/url_request_test_job.h" | 15 #include "net/url_request/url_request_test_job.h" |
| 17 #include "net/url_request/url_request_unittest.h" | 16 #include "net/url_request/url_request_unittest.h" |
| 18 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 19 | 18 |
| 20 namespace { | 19 namespace { |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 | 278 |
| 280 // Tests that the plugin does not intercept its own requests. | 279 // Tests that the plugin does not intercept its own requests. |
| 281 TEST_F(ChromePluginTest, DoesNotInterceptOwnRequest) { | 280 TEST_F(ChromePluginTest, DoesNotInterceptOwnRequest) { |
| 282 const TestResponsePayload& payload = kChromeTestPluginPayloads[0]; | 281 const TestResponsePayload& payload = kChromeTestPluginPayloads[0]; |
| 283 | 282 |
| 284 EXPECT_EQ(CPERR_SUCCESS, test_funcs_.test_make_request( | 283 EXPECT_EQ(CPERR_SUCCESS, test_funcs_.test_make_request( |
| 285 "GET", GURL(payload.url))); | 284 "GET", GURL(payload.url))); |
| 286 | 285 |
| 287 MessageLoop::current()->Run(); | 286 MessageLoop::current()->Run(); |
| 288 } | 287 } |
| OLD | NEW |