| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "chrome/browser/chrome_thread.h" | 9 #include "chrome/browser/chrome_thread.h" |
| 10 #include "chrome/browser/download/download_file.h" | 10 #include "chrome/browser/download/download_file.h" |
| 11 #include "chrome/browser/download/download_file_manager.h" | 11 #include "chrome/browser/download/download_file_manager.h" |
| 12 #include "chrome/browser/download/download_manager.h" | 12 #include "chrome/browser/download/download_manager.h" |
| 13 #include "chrome/browser/download/download_util.h" | 13 #include "chrome/browser/download/download_util.h" |
| 14 #include "chrome/browser/history/download_types.h" | 14 #include "chrome/browser/history/download_types.h" |
| 15 #include "chrome/browser/pref_service.h" | 15 #include "chrome/browser/prefs/pref_service.h" |
| 16 #include "chrome/common/pref_names.h" | 16 #include "chrome/common/pref_names.h" |
| 17 #include "chrome/test/testing_profile.h" | 17 #include "chrome/test/testing_profile.h" |
| 18 #include "testing/gmock/include/gmock/gmock.h" | 18 #include "testing/gmock/include/gmock/gmock.h" |
| 19 #include "testing/gmock_mutant.h" | 19 #include "testing/gmock_mutant.h" |
| 20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
| 21 | 21 |
| 22 class MockDownloadManager : public DownloadManager { | 22 class MockDownloadManager : public DownloadManager { |
| 23 public: | 23 public: |
| 24 // Override some functions. | 24 // Override some functions. |
| 25 virtual void UpdateAppIcon() { } | 25 virtual void UpdateAppIcon() { } |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 download_manager_->DownloadFinished(i, 1024); | 244 download_manager_->DownloadFinished(i, 1024); |
| 245 download_manager_->FileSelected(new_path, i, info); | 245 download_manager_->FileSelected(new_path, i, info); |
| 246 } else { | 246 } else { |
| 247 download_manager_->FileSelected(new_path, i, info); | 247 download_manager_->FileSelected(new_path, i, info); |
| 248 download_manager_->DownloadFinished(i, 1024); | 248 download_manager_->DownloadFinished(i, 1024); |
| 249 } | 249 } |
| 250 | 250 |
| 251 message_loop_.RunAllPending(); | 251 message_loop_.RunAllPending(); |
| 252 } | 252 } |
| 253 } | 253 } |
| OLD | NEW |