| 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 <sstream> | 5 #include <sstream> |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 #include "chrome/browser/extensions/extension_install_prompt.h" | 39 #include "chrome/browser/extensions/extension_install_prompt.h" |
| 40 #include "chrome/browser/extensions/extension_service.h" | 40 #include "chrome/browser/extensions/extension_service.h" |
| 41 #include "chrome/browser/history/download_row.h" | 41 #include "chrome/browser/history/download_row.h" |
| 42 #include "chrome/browser/history/history_service.h" | 42 #include "chrome/browser/history/history_service.h" |
| 43 #include "chrome/browser/history/history_service_factory.h" | 43 #include "chrome/browser/history/history_service_factory.h" |
| 44 #include "chrome/browser/infobars/confirm_infobar_delegate.h" | 44 #include "chrome/browser/infobars/confirm_infobar_delegate.h" |
| 45 #include "chrome/browser/infobars/infobar.h" | 45 #include "chrome/browser/infobars/infobar.h" |
| 46 #include "chrome/browser/infobars/infobar_service.h" | 46 #include "chrome/browser/infobars/infobar_service.h" |
| 47 #include "chrome/browser/net/url_request_mock_util.h" | 47 #include "chrome/browser/net/url_request_mock_util.h" |
| 48 #include "chrome/browser/profiles/profile.h" | 48 #include "chrome/browser/profiles/profile.h" |
| 49 #include "chrome/browser/tab_contents/render_view_context_menu.h" | 49 #include "chrome/browser/renderer_context_menu/render_view_context_menu.h" |
| 50 #include "chrome/browser/ui/browser.h" | 50 #include "chrome/browser/ui/browser.h" |
| 51 #include "chrome/browser/ui/browser_commands.h" | 51 #include "chrome/browser/ui/browser_commands.h" |
| 52 #include "chrome/browser/ui/browser_finder.h" | 52 #include "chrome/browser/ui/browser_finder.h" |
| 53 #include "chrome/browser/ui/browser_list.h" | 53 #include "chrome/browser/ui/browser_list.h" |
| 54 #include "chrome/browser/ui/browser_tabstrip.h" | 54 #include "chrome/browser/ui/browser_tabstrip.h" |
| 55 #include "chrome/browser/ui/browser_window.h" | 55 #include "chrome/browser/ui/browser_window.h" |
| 56 #include "chrome/browser/ui/chrome_pages.h" | 56 #include "chrome/browser/ui/chrome_pages.h" |
| 57 #include "chrome/browser/ui/host_desktop.h" | 57 #include "chrome/browser/ui/host_desktop.h" |
| 58 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 58 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 59 #include "chrome/common/chrome_paths.h" | 59 #include "chrome/common/chrome_paths.h" |
| (...skipping 3183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3243 | 3243 |
| 3244 // No errors this time. The download should complete successfully. | 3244 // No errors this time. The download should complete successfully. |
| 3245 EXPECT_FALSE(completion_observer->IsFinished()); | 3245 EXPECT_FALSE(completion_observer->IsFinished()); |
| 3246 completion_observer->StartObserving(); | 3246 completion_observer->StartObserving(); |
| 3247 download->Resume(); | 3247 download->Resume(); |
| 3248 completion_observer->WaitForFinished(); | 3248 completion_observer->WaitForFinished(); |
| 3249 EXPECT_EQ(DownloadItem::COMPLETE, download->GetState()); | 3249 EXPECT_EQ(DownloadItem::COMPLETE, download->GetState()); |
| 3250 | 3250 |
| 3251 EXPECT_FALSE(DidShowFileChooser()); | 3251 EXPECT_FALSE(DidShowFileChooser()); |
| 3252 } | 3252 } |
| OLD | NEW |