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

Side by Side Diff: chrome/browser/chromeos/drive/drive_integration_service_unittest.cc

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 7 years, 6 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 | Annotate | Revision Log
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 "chrome/browser/chromeos/drive/drive_integration_service.h" 5 #include "chrome/browser/chromeos/drive/drive_integration_service.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "chrome/browser/chromeos/drive/dummy_file_system.h" 8 #include "chrome/browser/chromeos/drive/dummy_file_system.h"
9 #include "chrome/browser/chromeos/drive/test_util.h" 9 #include "chrome/browser/chromeos/drive/test_util.h"
10 #include "chrome/browser/google_apis/dummy_drive_service.h" 10 #include "chrome/browser/google_apis/dummy_drive_service.h"
(...skipping 18 matching lines...) Expand all
29 new DummyFileSystem)); 29 new DummyFileSystem));
30 } 30 }
31 31
32 virtual void TearDown() OVERRIDE { 32 virtual void TearDown() OVERRIDE {
33 integration_service_.reset(); 33 integration_service_.reset();
34 google_apis::test_util::RunBlockingPoolTask(); 34 google_apis::test_util::RunBlockingPoolTask();
35 profile_.reset(); 35 profile_.reset();
36 } 36 }
37 37
38 protected: 38 protected:
39 MessageLoopForUI message_loop_; 39 base::MessageLoopForUI message_loop_;
40 content::TestBrowserThread ui_thread_; 40 content::TestBrowserThread ui_thread_;
41 scoped_ptr<TestingProfile> profile_; 41 scoped_ptr<TestingProfile> profile_;
42 scoped_ptr<DriveIntegrationService> integration_service_; 42 scoped_ptr<DriveIntegrationService> integration_service_;
43 }; 43 };
44 44
45 TEST_F(DriveIntegrationServiceTest, InitializeAndShutdown) { 45 TEST_F(DriveIntegrationServiceTest, InitializeAndShutdown) {
46 integration_service_->Initialize(); 46 integration_service_->Initialize();
47 google_apis::test_util::RunBlockingPoolTask(); 47 google_apis::test_util::RunBlockingPoolTask();
48 integration_service_->Shutdown(); 48 integration_service_->Shutdown();
49 } 49 }
50 50
51 } // namespace drive 51 } // namespace drive
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698