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

Side by Side Diff: content/browser/storage_partition_impl_map_unittest.cc

Issue 538403002: Change base/file_utils.h includes to base/files/file_utils.h in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 "content/browser/storage_partition_impl_map.h" 5 #include "content/browser/storage_partition_impl_map.h"
6 6
7 #include "base/file_util.h" 7 #include "base/files/file_util.h"
8 #include "base/run_loop.h" 8 #include "base/run_loop.h"
9 #include "content/public/test/test_browser_context.h" 9 #include "content/public/test/test_browser_context.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 // Test that the Less comparison function is implemented properly to uniquely 14 // Test that the Less comparison function is implemented properly to uniquely
15 // identify storage partitions used as keys in a std::map. 15 // identify storage partitions used as keys in a std::map.
16 TEST(StoragePartitionConfigTest, OperatorLess) { 16 TEST(StoragePartitionConfigTest, OperatorLess) {
17 StoragePartitionImplMap::StoragePartitionConfig c1( 17 StoragePartitionImplMap::StoragePartitionConfig c1(
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 base::RunLoop run_loop; 83 base::RunLoop run_loop;
84 storage_partition_impl_map.GarbageCollect( 84 storage_partition_impl_map.GarbageCollect(
85 active_paths.Pass(), run_loop.QuitClosure()); 85 active_paths.Pass(), run_loop.QuitClosure());
86 run_loop.Run(); 86 run_loop.Run();
87 87
88 EXPECT_TRUE(base::PathExists(active_path)); 88 EXPECT_TRUE(base::PathExists(active_path));
89 EXPECT_FALSE(base::PathExists(inactive_path)); 89 EXPECT_FALSE(base::PathExists(inactive_path));
90 } 90 }
91 91
92 } // namespace content 92 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/storage_partition_impl_map.cc ('k') | content/browser/storage_partition_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698