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/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "content/browser/download/download_file_manager.h" | 22 #include "content/browser/download/download_file_manager.h" |
23 #include "content/browser/download/download_manager_impl.h" | 23 #include "content/browser/download/download_manager_impl.h" |
24 #include "content/browser/download/download_request_handle.h" | 24 #include "content/browser/download/download_request_handle.h" |
25 #include "content/browser/download/mock_download_file.h" | 25 #include "content/browser/download/mock_download_file.h" |
26 #include "content/browser/power_save_blocker.h" | 26 #include "content/browser/power_save_blocker.h" |
27 #include "content/public/browser/download_interrupt_reasons.h" | 27 #include "content/public/browser/download_interrupt_reasons.h" |
28 #include "content/public/browser/download_item.h" | 28 #include "content/public/browser/download_item.h" |
29 #include "content/public/browser/download_manager_delegate.h" | 29 #include "content/public/browser/download_manager_delegate.h" |
30 #include "content/public/test/mock_download_manager.h" | 30 #include "content/public/test/mock_download_manager.h" |
31 #include "content/test/test_browser_context.h" | 31 #include "content/test/test_browser_context.h" |
32 #include "content/test/test_browser_thread.h" | 32 #include "content/public/test/test_browser_thread.h" |
33 #include "net/base/io_buffer.h" | 33 #include "net/base/io_buffer.h" |
34 #include "net/base/net_util.h" | 34 #include "net/base/net_util.h" |
35 #include "testing/gmock/include/gmock/gmock.h" | 35 #include "testing/gmock/include/gmock/gmock.h" |
36 #include "testing/gmock_mutant.h" | 36 #include "testing/gmock_mutant.h" |
37 #include "testing/gtest/include/gtest/gtest.h" | 37 #include "testing/gtest/include/gtest/gtest.h" |
38 | 38 |
39 #if defined(USE_AURA) && defined(OS_WIN) | 39 #if defined(USE_AURA) && defined(OS_WIN) |
40 // http://crbug.com/105200 | 40 // http://crbug.com/105200 |
41 #define MAYBE_StartDownload DISABLED_StartDownload | 41 #define MAYBE_StartDownload DISABLED_StartDownload |
42 #define MAYBE_DownloadOverwriteTest DISABLED_DownloadOverwriteTest | 42 #define MAYBE_DownloadOverwriteTest DISABLED_DownloadOverwriteTest |
(...skipping 1215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1258 EXPECT_FALSE(observer->hit_state(DownloadItem::INTERRUPTED)); | 1258 EXPECT_FALSE(observer->hit_state(DownloadItem::INTERRUPTED)); |
1259 EXPECT_TRUE(observer->hit_state(DownloadItem::COMPLETE)); | 1259 EXPECT_TRUE(observer->hit_state(DownloadItem::COMPLETE)); |
1260 EXPECT_FALSE(observer->hit_state(DownloadItem::REMOVING)); | 1260 EXPECT_FALSE(observer->hit_state(DownloadItem::REMOVING)); |
1261 EXPECT_TRUE(observer->was_updated()); | 1261 EXPECT_TRUE(observer->was_updated()); |
1262 EXPECT_FALSE(observer->was_opened()); | 1262 EXPECT_FALSE(observer->was_opened()); |
1263 EXPECT_TRUE(download->GetFileExternallyRemoved()); | 1263 EXPECT_TRUE(download->GetFileExternallyRemoved()); |
1264 EXPECT_EQ(DownloadItem::COMPLETE, download->GetState()); | 1264 EXPECT_EQ(DownloadItem::COMPLETE, download->GetState()); |
1265 | 1265 |
1266 EXPECT_FALSE(file_util::PathExists(new_path)); | 1266 EXPECT_FALSE(file_util::PathExists(new_path)); |
1267 } | 1267 } |
OLD | NEW |