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 <string> | 5 #include <string> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 | 121 |
122 virtual void TearDown() OVERRIDE { | 122 virtual void TearDown() OVERRIDE { |
123 ASSERT_TRUE(file_system_); | 123 ASSERT_TRUE(file_system_); |
124 stale_cache_files_remover_.reset(); | 124 stale_cache_files_remover_.reset(); |
125 delete file_system_; | 125 delete file_system_; |
126 file_system_ = NULL; | 126 file_system_ = NULL; |
127 cache_.reset(); | 127 cache_.reset(); |
128 profile_.reset(NULL); | 128 profile_.reset(NULL); |
129 } | 129 } |
130 | 130 |
131 MessageLoopForUI message_loop_; | 131 base::MessageLoopForUI message_loop_; |
132 // The order of the test threads is important, do not change the order. | 132 // The order of the test threads is important, do not change the order. |
133 // See also content/browser/browser_thread_impl.cc. | 133 // See also content/browser/browser_thread_impl.cc. |
134 content::TestBrowserThread ui_thread_; | 134 content::TestBrowserThread ui_thread_; |
135 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; | 135 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; |
136 scoped_ptr<TestingProfile> profile_; | 136 scoped_ptr<TestingProfile> profile_; |
137 scoped_ptr<DriveCache, test_util::DestroyHelperForTests> cache_; | 137 scoped_ptr<DriveCache, test_util::DestroyHelperForTests> cache_; |
138 DriveFileSystem* file_system_; | 138 DriveFileSystem* file_system_; |
139 scoped_ptr<google_apis::FakeDriveService> fake_drive_service_; | 139 scoped_ptr<google_apis::FakeDriveService> fake_drive_service_; |
140 scoped_ptr<JobScheduler> scheduler_; | 140 scoped_ptr<JobScheduler> scheduler_; |
141 scoped_ptr<DriveWebAppsRegistry> drive_webapps_registry_; | 141 scoped_ptr<DriveWebAppsRegistry> drive_webapps_registry_; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 | 191 |
192 // Verify that the cache entry is deleted. | 192 // Verify that the cache entry is deleted. |
193 cache_->GetCacheEntry(resource_id, md5, | 193 cache_->GetCacheEntry(resource_id, md5, |
194 google_apis::test_util::CreateCopyResultCallback( | 194 google_apis::test_util::CreateCopyResultCallback( |
195 &success, &cache_entry)); | 195 &success, &cache_entry)); |
196 google_apis::test_util::RunBlockingPoolTask(); | 196 google_apis::test_util::RunBlockingPoolTask(); |
197 EXPECT_FALSE(success); | 197 EXPECT_FALSE(success); |
198 } | 198 } |
199 | 199 |
200 } // namespace drive | 200 } // namespace drive |
OLD | NEW |