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/chromeos/drive/drive_system_service.h" | 5 #include "chrome/browser/chromeos/drive/drive_system_service.h" |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "chrome/browser/chromeos/drive/drive_test_util.h" | 8 #include "chrome/browser/chromeos/drive/drive_test_util.h" |
9 #include "chrome/browser/chromeos/drive/mock_drive_file_system.h" | 9 #include "chrome/browser/chromeos/drive/mock_drive_file_system.h" |
10 #include "chrome/browser/google_apis/dummy_drive_service.h" | 10 #include "chrome/browser/google_apis/dummy_drive_service.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 content::TestBrowserThread ui_thread_; | 46 content::TestBrowserThread ui_thread_; |
47 content::TestBrowserThread io_thread_; | 47 content::TestBrowserThread io_thread_; |
48 scoped_ptr<TestingProfile> profile_; | 48 scoped_ptr<TestingProfile> profile_; |
49 | 49 |
50 MockDriveFileSystem* file_system_; | 50 MockDriveFileSystem* file_system_; |
51 DriveSystemService* system_service_; | 51 DriveSystemService* system_service_; |
52 }; | 52 }; |
53 | 53 |
54 // Verify DriveFileSystem::StartInitialFeedFetch is called in initialization. | 54 // Verify DriveFileSystem::StartInitialFeedFetch is called in initialization. |
55 TEST_F(DriveSystemServiceTest, InitialFeedFetch) { | 55 TEST_F(DriveSystemServiceTest, InitialFeedFetch) { |
56 EXPECT_CALL(*file_system_, StartInitialFeedFetch()).Times(1); | 56 EXPECT_CALL(*file_system_, StartInitialFeedFetch()).Times(0); |
57 system_service_->Initialize(); | 57 system_service_->Initialize(); |
58 google_apis::test_util::RunBlockingPoolTask(); | 58 google_apis::test_util::RunBlockingPoolTask(); |
59 system_service_->Shutdown(); | 59 system_service_->Shutdown(); |
60 } | 60 } |
61 | 61 |
62 } // namespace drive | 62 } // namespace drive |
OLD | NEW |