Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: chrome/browser/download/download_shelf_unittest.cc

Issue 2853363002: Rename the DownloadService to DownloadCoreService (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <memory> 5 #include <memory>
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/run_loop.h" 8 #include "base/run_loop.h"
9 #include "chrome/browser/chrome_notification_types.h" 9 #include "chrome/browser/chrome_notification_types.h"
10 #include "chrome/browser/download/download_core_service_factory.h"
11 #include "chrome/browser/download/download_core_service_impl.h"
10 #include "chrome/browser/download/download_item_model.h" 12 #include "chrome/browser/download/download_item_model.h"
11 #include "chrome/browser/download/download_service_factory.h"
12 #include "chrome/browser/download/download_service_impl.h"
13 #include "chrome/browser/download/test_download_shelf.h" 13 #include "chrome/browser/download/test_download_shelf.h"
14 #include "chrome/test/base/testing_profile.h" 14 #include "chrome/test/base/testing_profile.h"
15 #include "content/public/browser/notification_service.h" 15 #include "content/public/browser/notification_service.h"
16 #include "content/public/test/mock_download_item.h" 16 #include "content/public/test/mock_download_item.h"
17 #include "content/public/test/mock_download_manager.h" 17 #include "content/public/test/mock_download_manager.h"
18 #include "content/public/test/test_browser_thread_bundle.h" 18 #include "content/public/test/test_browser_thread_bundle.h"
19 #include "extensions/common/extension.h" 19 #include "extensions/common/extension.h"
20 #include "testing/gmock/include/gmock/gmock.h" 20 #include "testing/gmock/include/gmock/gmock.h"
21 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
22 22
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 .WillRepeatedly(Return(false)); 195 .WillRepeatedly(Return(false));
196 ASSERT_FALSE(DownloadItemModel(download_item()) 196 ASSERT_FALSE(DownloadItemModel(download_item())
197 .ShouldRemoveFromShelfWhenComplete()); 197 .ShouldRemoveFromShelfWhenComplete());
198 198
199 base::RunLoop run_loop; 199 base::RunLoop run_loop;
200 run_loop.RunUntilIdle(); 200 run_loop.RunUntilIdle();
201 201
202 EXPECT_TRUE(shelf()->did_add_download()); 202 EXPECT_TRUE(shelf()->did_add_download());
203 EXPECT_TRUE(shelf()->IsShowing()); 203 EXPECT_TRUE(shelf()->IsShowing());
204 } 204 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698