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 "content/public/test/download_test_observer.h" | 5 #include "content/public/test/download_test_observer.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
12 #include "base/stl_util.h" | 12 #include "base/stl_util.h" |
13 #include "base/threading/sequenced_worker_pool.h" | 13 #include "base/threading/sequenced_worker_pool.h" |
14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
15 #include "content/public/browser/download_url_parameters.h" | 15 #include "content/public/browser/download_url_parameters.h" |
16 #include "content/public/test/test_utils.h" | 16 #include "content/public/test/test_utils.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 | 20 |
21 DownloadUpdatedObserver::DownloadUpdatedObserver( | 21 DownloadUpdatedObserver::DownloadUpdatedObserver( |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 base::MessageLoopForUI::current()->Quit(); | 442 base::MessageLoopForUI::current()->Quit(); |
443 } | 443 } |
444 | 444 |
445 const DownloadUrlParameters::OnStartedCallback | 445 const DownloadUrlParameters::OnStartedCallback |
446 DownloadTestItemCreationObserver::callback() { | 446 DownloadTestItemCreationObserver::callback() { |
447 return base::Bind( | 447 return base::Bind( |
448 &DownloadTestItemCreationObserver::DownloadItemCreationCallback, this); | 448 &DownloadTestItemCreationObserver::DownloadItemCreationCallback, this); |
449 } | 449 } |
450 | 450 |
451 } // namespace content | 451 } // namespace content |
OLD | NEW |