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

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

Issue 1208963003: Move GN obj files to target-specific dirs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: \ Created 5 years, 5 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 "chrome/browser/chromeos/drive/file_cache.h" 5 #include "chrome/browser/chromeos/drive/file_cache.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback_helpers.h" 10 #include "base/callback_helpers.h"
11 #include "base/files/file_enumerator.h" 11 #include "base/files/file_enumerator.h"
12 #include "base/files/file_util.h" 12 #include "base/files/file_util.h"
13 #include "base/files/scoped_temp_dir.h" 13 #include "base/files/scoped_temp_dir.h"
14 #include "base/md5.h" 14 #include "base/md5.h"
15 #include "base/path_service.h" 15 #include "base/path_service.h"
16 #include "base/single_thread_task_runner.h" 16 #include "base/single_thread_task_runner.h"
17 #include "base/thread_task_runner_handle.h" 17 #include "base/thread_task_runner_handle.h"
18 #include "chrome/browser/chromeos/drive/drive.pb.h" 18 #include "chrome/browser/chromeos/drive/drive.pb.h"
19 #include "chrome/browser/chromeos/drive/drive_test_util.h"
19 #include "chrome/browser/chromeos/drive/fake_free_disk_space_getter.h" 20 #include "chrome/browser/chromeos/drive/fake_free_disk_space_getter.h"
20 #include "chrome/browser/chromeos/drive/file_system_core_util.h" 21 #include "chrome/browser/chromeos/drive/file_system_core_util.h"
21 #include "chrome/browser/chromeos/drive/resource_metadata_storage.h" 22 #include "chrome/browser/chromeos/drive/resource_metadata_storage.h"
22 #include "chrome/browser/chromeos/drive/test_util.h"
23 #include "content/public/test/test_browser_thread_bundle.h" 23 #include "content/public/test/test_browser_thread_bundle.h"
24 #include "google_apis/drive/test_util.h" 24 #include "google_apis/drive/test_util.h"
25 #include "testing/gtest/include/gtest/gtest.h" 25 #include "testing/gtest/include/gtest/gtest.h"
26 26
27 namespace drive { 27 namespace drive {
28 namespace internal { 28 namespace internal {
29 namespace { 29 namespace {
30 30
31 const char kCacheFileDirectory[] = "files"; 31 const char kCacheFileDirectory[] = "files";
32 32
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 553
554 // Clear cache. 554 // Clear cache.
555 EXPECT_TRUE(cache_->ClearAll()); 555 EXPECT_TRUE(cache_->ClearAll());
556 556
557 // Verify that the cache is removed. 557 // Verify that the cache is removed.
558 EXPECT_TRUE(base::IsDirectoryEmpty(cache_files_dir_)); 558 EXPECT_TRUE(base::IsDirectoryEmpty(cache_files_dir_));
559 } 559 }
560 560
561 } // namespace internal 561 } // namespace internal
562 } // namespace drive 562 } // namespace drive
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698