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

Side by Side Diff: content/browser/download/download_browsertest.cc

Issue 18868005: content: Migrate from googleurl/ includes to url/ ones. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | « content/browser/download/base_file.h ('k') | content/browser/download/download_create_info.h » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // This file contains download browser tests that are known to be runnable 5 // This file contains download browser tests that are known to be runnable
6 // in a pure content context. Over time tests should be migrated here. 6 // in a pure content context. Over time tests should be migrated here.
7 7
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 10 matching lines...) Expand all
21 #include "content/public/test/download_test_observer.h" 21 #include "content/public/test/download_test_observer.h"
22 #include "content/public/test/test_file_error_injector.h" 22 #include "content/public/test/test_file_error_injector.h"
23 #include "content/public/test/test_utils.h" 23 #include "content/public/test/test_utils.h"
24 #include "content/shell/shell.h" 24 #include "content/shell/shell.h"
25 #include "content/shell/shell_browser_context.h" 25 #include "content/shell/shell_browser_context.h"
26 #include "content/shell/shell_download_manager_delegate.h" 26 #include "content/shell/shell_download_manager_delegate.h"
27 #include "content/test/content_browser_test.h" 27 #include "content/test/content_browser_test.h"
28 #include "content/test/content_browser_test_utils.h" 28 #include "content/test/content_browser_test_utils.h"
29 #include "content/test/net/url_request_mock_http_job.h" 29 #include "content/test/net/url_request_mock_http_job.h"
30 #include "content/test/net/url_request_slow_download_job.h" 30 #include "content/test/net/url_request_slow_download_job.h"
31 #include "googleurl/src/gurl.h"
32 #include "net/test/spawned_test_server/spawned_test_server.h" 31 #include "net/test/spawned_test_server/spawned_test_server.h"
33 #include "testing/gmock/include/gmock/gmock.h" 32 #include "testing/gmock/include/gmock/gmock.h"
34 #include "testing/gtest/include/gtest/gtest.h" 33 #include "testing/gtest/include/gtest/gtest.h"
34 #include "url/gurl.h"
35 35
36 using ::testing::_; 36 using ::testing::_;
37 using ::testing::AllOf; 37 using ::testing::AllOf;
38 using ::testing::Field; 38 using ::testing::Field;
39 using ::testing::InSequence; 39 using ::testing::InSequence;
40 using ::testing::Property; 40 using ::testing::Property;
41 using ::testing::Return; 41 using ::testing::Return;
42 using ::testing::StrictMock; 42 using ::testing::StrictMock;
43 43
44 namespace content { 44 namespace content {
(...skipping 1521 matching lines...) Expand 10 before | Expand all | Expand 10 after
1566 // Start the second download and wait until it's done. The test server is 1566 // Start the second download and wait until it's done. The test server is
1567 // single threaded. The response to this download request should follow the 1567 // single threaded. The response to this download request should follow the
1568 // response to the previous resumption request. 1568 // response to the previous resumption request.
1569 GURL url2(test_server()->GetURL("rangereset?size=100&rst_limit=0&token=x")); 1569 GURL url2(test_server()->GetURL("rangereset?size=100&rst_limit=0&token=x"));
1570 DownloadAndWait(shell(), url2, DownloadItem::COMPLETE); 1570 DownloadAndWait(shell(), url2, DownloadItem::COMPLETE);
1571 1571
1572 EXPECT_TRUE(EnsureNoPendingDownloads()); 1572 EXPECT_TRUE(EnsureNoPendingDownloads());
1573 } 1573 }
1574 1574
1575 } // namespace content 1575 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/download/base_file.h ('k') | content/browser/download/download_create_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698