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 "chrome/browser/download/all_download_item_notifier.h" | 5 #include "chrome/browser/download/all_download_item_notifier.h" |
6 | 6 |
| 7 #include "base/macros.h" |
7 #include "content/public/test/mock_download_item.h" | 8 #include "content/public/test/mock_download_item.h" |
8 #include "content/public/test/mock_download_manager.h" | 9 #include "content/public/test/mock_download_manager.h" |
9 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
11 | 12 |
12 using testing::NiceMock; | 13 using testing::NiceMock; |
13 using testing::SetArgPointee; | 14 using testing::SetArgPointee; |
14 using testing::_; | 15 using testing::_; |
15 | 16 |
16 namespace { | 17 namespace { |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 | 108 |
108 EXPECT_CALL(observer(), OnDownloadCreated(&manager(), &item())); | 109 EXPECT_CALL(observer(), OnDownloadCreated(&manager(), &item())); |
109 NotifierAsManagerObserver()->OnDownloadCreated( | 110 NotifierAsManagerObserver()->OnDownloadCreated( |
110 &manager(), &item()); | 111 &manager(), &item()); |
111 | 112 |
112 EXPECT_CALL(manager(), RemoveObserver(NotifierAsManagerObserver())); | 113 EXPECT_CALL(manager(), RemoveObserver(NotifierAsManagerObserver())); |
113 NotifierAsManagerObserver()->ManagerGoingDown(&manager()); | 114 NotifierAsManagerObserver()->ManagerGoingDown(&manager()); |
114 | 115 |
115 ClearNotifier(); | 116 ClearNotifier(); |
116 } | 117 } |
OLD | NEW |