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

Side by Side Diff: components/drive/remove_stale_cache_files_unittest.cc

Issue 1970833002: Fix include path for moved thread_task_runner_handle.h header in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a1_move_task_runner_handle
Patch Set: merge up to r393009 Created 4 years, 7 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
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 "components/drive/chromeos/remove_stale_cache_files.h" 5 #include "components/drive/chromeos/remove_stale_cache_files.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/files/file_util.h" 11 #include "base/files/file_util.h"
12 #include "base/files/scoped_temp_dir.h" 12 #include "base/files/scoped_temp_dir.h"
13 #include "base/single_thread_task_runner.h" 13 #include "base/single_thread_task_runner.h"
14 #include "base/thread_task_runner_handle.h" 14 #include "base/threading/thread_task_runner_handle.h"
15 #include "components/drive/chromeos/drive_test_util.h" 15 #include "components/drive/chromeos/drive_test_util.h"
16 #include "components/drive/chromeos/fake_free_disk_space_getter.h" 16 #include "components/drive/chromeos/fake_free_disk_space_getter.h"
17 #include "components/drive/chromeos/resource_metadata.h" 17 #include "components/drive/chromeos/resource_metadata.h"
18 #include "components/drive/drive.pb.h" 18 #include "components/drive/drive.pb.h"
19 #include "components/drive/file_system_core_util.h" 19 #include "components/drive/file_system_core_util.h"
20 #include "content/public/test/test_browser_thread_bundle.h" 20 #include "content/public/test/test_browser_thread_bundle.h"
21 #include "google_apis/drive/test_util.h" 21 #include "google_apis/drive/test_util.h"
22 #include "testing/gtest/include/gtest/gtest.h" 22 #include "testing/gtest/include/gtest/gtest.h"
23 23
24 namespace drive { 24 namespace drive {
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 RemoveStaleCacheFiles(cache_.get(), resource_metadata_.get()); 107 RemoveStaleCacheFiles(cache_.get(), resource_metadata_.get());
108 108
109 // Dirty cache should not be removed even though its MD5 doesn't match. 109 // Dirty cache should not be removed even though its MD5 doesn't match.
110 EXPECT_EQ(FILE_ERROR_OK, 110 EXPECT_EQ(FILE_ERROR_OK,
111 resource_metadata_->GetResourceEntryById(local_id, &entry)); 111 resource_metadata_->GetResourceEntryById(local_id, &entry));
112 EXPECT_TRUE(entry.file_specific_info().cache_state().is_present()); 112 EXPECT_TRUE(entry.file_specific_info().cache_state().is_present());
113 } 113 }
114 114
115 } // namespace internal 115 } // namespace internal
116 } // namespace drive 116 } // namespace drive
OLDNEW
« no previous file with comments | « components/drive/job_scheduler_unittest.cc ('k') | components/drive/resource_metadata_storage_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698