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

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

Issue 12440036: Move ByteStream to content/browser (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 7 years, 9 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
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"
11 #include "base/files/scoped_temp_dir.h" 11 #include "base/files/scoped_temp_dir.h"
12 #include "content/browser/download/byte_stream.h" 12 #include "content/browser/byte_stream.h"
13 #include "content/browser/download/download_file_factory.h" 13 #include "content/browser/download/download_file_factory.h"
14 #include "content/browser/download/download_file_impl.h" 14 #include "content/browser/download/download_file_impl.h"
15 #include "content/browser/download/download_item_impl.h" 15 #include "content/browser/download/download_item_impl.h"
16 #include "content/browser/download/download_manager_impl.h" 16 #include "content/browser/download/download_manager_impl.h"
17 #include "content/browser/download/download_resource_handler.h" 17 #include "content/browser/download/download_resource_handler.h"
18 #include "content/browser/web_contents/web_contents_impl.h" 18 #include "content/browser/web_contents/web_contents_impl.h"
19 #include "content/public/browser/power_save_blocker.h" 19 #include "content/public/browser/power_save_blocker.h"
20 #include "content/public/common/content_switches.h" 20 #include "content/public/common/content_switches.h"
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"
(...skipping 1329 matching lines...) Expand 10 before | Expand all | Expand 10 after
1352 1352
1353 // Resume and watch completion. 1353 // Resume and watch completion.
1354 DownloadUpdatedObserver completion_observer( 1354 DownloadUpdatedObserver completion_observer(
1355 download, base::Bind(DownloadCompleteFilter)); 1355 download, base::Bind(DownloadCompleteFilter));
1356 download->ResumeInterruptedDownload(); 1356 download->ResumeInterruptedDownload();
1357 completion_observer.WaitForEvent(); 1357 completion_observer.WaitForEvent();
1358 EXPECT_EQ(download->GetState(), DownloadItem::COMPLETE); 1358 EXPECT_EQ(download->GetState(), DownloadItem::COMPLETE);
1359 } 1359 }
1360 1360
1361 } // namespace content 1361 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/download/byte_stream_unittest.cc ('k') | content/browser/download/download_file_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698