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

Side by Side Diff: chrome/common/chrome_plugin_unittest.cc

Issue 20378: Reduce the amount of included header files. Vast change like in "Oh God! This... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 | Annotate | Revision Log
OLDNEW
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" 10 #include "chrome/browser/net/url_fetcher.h"
11 #include "chrome/browser/profile.h" 11 #include "chrome/browser/profile.h"
12 #include "chrome/common/chrome_plugin_lib.h" 12 #include "chrome/common/chrome_plugin_lib.h"
13 #include "chrome/test/chrome_plugin/test_chrome_plugin.h" 13 #include "chrome/test/chrome_plugin/test_chrome_plugin.h"
14 #include "net/base/io_buffer.h" 14 #include "net/base/io_buffer.h"
15 #include "net/http/http_response_headers.h"
15 #include "net/url_request/url_request_test_job.h" 16 #include "net/url_request/url_request_test_job.h"
16 #include "net/url_request/url_request_unittest.h" 17 #include "net/url_request/url_request_unittest.h"
17 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
18 19
19 namespace { 20 namespace {
20 21
21 const wchar_t kDocRoot[] = L"chrome/test/data"; 22 const wchar_t kDocRoot[] = L"chrome/test/data";
22 const char kPluginFilename[] = "test_chrome_plugin.dll"; 23 const char kPluginFilename[] = "test_chrome_plugin.dll";
23 const int kResponseBufferSize = 4096; 24 const int kResponseBufferSize = 4096;
24 25
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 // Tests that the plugin does not intercept its own requests. 280 // Tests that the plugin does not intercept its own requests.
280 TEST_F(ChromePluginTest, DoesNotInterceptOwnRequest) { 281 TEST_F(ChromePluginTest, DoesNotInterceptOwnRequest) {
281 const TestResponsePayload& payload = kChromeTestPluginPayloads[0]; 282 const TestResponsePayload& payload = kChromeTestPluginPayloads[0];
282 283
283 EXPECT_EQ(CPERR_SUCCESS, test_funcs_.test_make_request( 284 EXPECT_EQ(CPERR_SUCCESS, test_funcs_.test_make_request(
284 "GET", GURL(payload.url))); 285 "GET", GURL(payload.url)));
285 286
286 MessageLoop::current()->Run(); 287 MessageLoop::current()->Run();
287 } 288 }
288 289
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698