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

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

Issue 11775014: chromeos: Disable Drive metadata prefetch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
« no previous file with comments | « chrome/browser/chromeos/drive/drive_system_service.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/drive_system_service.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698