OLD | NEW |
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 #include <set> | 5 #include <set> |
6 #include <string> | 6 #include <string> |
7 | 7 |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/files/scoped_temp_dir.h" |
10 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
11 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
12 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
13 #include "base/scoped_temp_dir.h" | |
14 #include "base/stl_util.h" | 14 #include "base/stl_util.h" |
15 #include "base/string16.h" | 15 #include "base/string16.h" |
16 #include "base/string_util.h" | 16 #include "base/string_util.h" |
17 #include "base/utf_string_conversions.h" | 17 #include "base/utf_string_conversions.h" |
18 #include "build/build_config.h" | 18 #include "build/build_config.h" |
19 #include "content/browser/download/byte_stream.h" | 19 #include "content/browser/download/byte_stream.h" |
20 #include "content/browser/download/download_create_info.h" | 20 #include "content/browser/download/download_create_info.h" |
21 #include "content/browser/download/download_file_factory.h" | 21 #include "content/browser/download/download_file_factory.h" |
22 #include "content/browser/download/download_item_factory.h" | 22 #include "content/browser/download/download_item_factory.h" |
23 #include "content/browser/download/download_item_impl.h" | 23 #include "content/browser/download/download_item_impl.h" |
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
684 UpdateItemInPersistentStore(&item)); | 684 UpdateItemInPersistentStore(&item)); |
685 EXPECT_CALL(item, GetState()) | 685 EXPECT_CALL(item, GetState()) |
686 .WillRepeatedly(Return(DownloadItem::CANCELLED)); | 686 .WillRepeatedly(Return(DownloadItem::CANCELLED)); |
687 EXPECT_CALL(item, GetDbHandle()) | 687 EXPECT_CALL(item, GetDbHandle()) |
688 .WillRepeatedly(Return(db_handle)); | 688 .WillRepeatedly(Return(db_handle)); |
689 | 689 |
690 DownloadStopped(&item); | 690 DownloadStopped(&item); |
691 } | 691 } |
692 | 692 |
693 } // namespace content | 693 } // namespace content |
OLD | NEW |