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

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

Issue 18305: Move url_* to net subdir (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 11 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
« no previous file with comments | « chrome/chrome.xcodeproj/project.pbxproj ('k') | chrome/test/memory_test/memory_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/profile.h" 11 #include "chrome/browser/profile.h"
11 #include "chrome/browser/url_fetcher.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/url_request/url_request_test_job.h" 14 #include "net/url_request/url_request_test_job.h"
15 #include "net/url_request/url_request_unittest.h" 15 #include "net/url_request/url_request_unittest.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 17
18 namespace { 18 namespace {
19 const wchar_t kDocRoot[] = L"chrome/test/data"; 19 const wchar_t kDocRoot[] = L"chrome/test/data";
20 const FilePath::CharType kPluginFilename[] = 20 const FilePath::CharType kPluginFilename[] =
21 FILE_PATH_LITERAL("test_chrome_plugin.dll"); 21 FILE_PATH_LITERAL("test_chrome_plugin.dll");
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 // Tests that the plugin does not intercept its own requests. 277 // Tests that the plugin does not intercept its own requests.
278 TEST_F(ChromePluginTest, DoesNotInterceptOwnRequest) { 278 TEST_F(ChromePluginTest, DoesNotInterceptOwnRequest) {
279 const TestResponsePayload& payload = kChromeTestPluginPayloads[0]; 279 const TestResponsePayload& payload = kChromeTestPluginPayloads[0];
280 280
281 EXPECT_EQ(CPERR_SUCCESS, test_funcs_.test_make_request( 281 EXPECT_EQ(CPERR_SUCCESS, test_funcs_.test_make_request(
282 "GET", GURL(payload.url))); 282 "GET", GURL(payload.url)));
283 283
284 MessageLoop::current()->Run(); 284 MessageLoop::current()->Run();
285 } 285 }
286 286
OLDNEW
« no previous file with comments | « chrome/chrome.xcodeproj/project.pbxproj ('k') | chrome/test/memory_test/memory_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698