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

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

Issue 8477004: Have content/ create and destroy its own threads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: With this patchset, Chrome runs and exits normally on Linux. Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/message_loop.h" 5 #include "base/message_loop.h"
6 #include "base/threading/thread.h"
6 #include "chrome/test/base/testing_profile.h" 7 #include "chrome/test/base/testing_profile.h"
7 #include "content/browser/download/download_create_info.h" 8 #include "content/browser/download/download_create_info.h"
8 #include "content/browser/download/download_id.h" 9 #include "content/browser/download/download_id.h"
9 #include "content/browser/download/download_id_factory.h" 10 #include "content/browser/download/download_id_factory.h"
10 #include "content/browser/download/download_item.h" 11 #include "content/browser/download/download_item.h"
11 #include "content/browser/download/download_status_updater.h" 12 #include "content/browser/download/download_status_updater.h"
12 #include "content/browser/download/interrupt_reasons.h" 13 #include "content/browser/download/interrupt_reasons.h"
13 #include "content/browser/download/mock_download_manager.h" 14 #include "content/browser/download/mock_download_manager.h"
14 #include "content/browser/download/mock_download_manager_delegate.h" 15 #include "content/browser/download/mock_download_manager_delegate.h"
15 #include "content/test/test_browser_thread.h" 16 #include "content/test/test_browser_thread.h"
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 TEST_F(DownloadItemTest, NotificationAfterTogglePause) { 245 TEST_F(DownloadItemTest, NotificationAfterTogglePause) {
245 DownloadItem* item = CreateDownloadItem(DownloadItem::IN_PROGRESS); 246 DownloadItem* item = CreateDownloadItem(DownloadItem::IN_PROGRESS);
246 MockObserver observer(item); 247 MockObserver observer(item);
247 248
248 item->TogglePause(); 249 item->TogglePause();
249 ASSERT_TRUE(observer.CheckUpdated()); 250 ASSERT_TRUE(observer.CheckUpdated());
250 251
251 item->TogglePause(); 252 item->TogglePause();
252 ASSERT_TRUE(observer.CheckUpdated()); 253 ASSERT_TRUE(observer.CheckUpdated());
253 } 254 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698