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

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

Issue 2876013002: Add missing IWYU message_loop.h includes. (Closed)
Patch Set: fix upstream Created 3 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 "content/browser/storage_partition_impl_map.h" 5 #include "content/browser/storage_partition_impl_map.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/message_loop/message_loop.h"
10 #include "base/run_loop.h" 11 #include "base/run_loop.h"
11 #include "content/public/browser/browser_thread.h" 12 #include "content/public/browser/browser_thread.h"
12 #include "content/public/test/test_browser_context.h" 13 #include "content/public/test/test_browser_context.h"
13 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
14 15
15 namespace content { 16 namespace content {
16 17
17 // Test that the Less comparison function is implemented properly to uniquely 18 // Test that the Less comparison function is implemented properly to uniquely
18 // identify storage partitions used as keys in a std::map. 19 // identify storage partitions used as keys in a std::map.
19 TEST(StoragePartitionConfigTest, OperatorLess) { 20 TEST(StoragePartitionConfigTest, OperatorLess) {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 storage_partition_impl_map.GarbageCollect(std::move(active_paths), 88 storage_partition_impl_map.GarbageCollect(std::move(active_paths),
88 run_loop.QuitClosure()); 89 run_loop.QuitClosure());
89 run_loop.Run(); 90 run_loop.Run();
90 BrowserThread::GetBlockingPool()->FlushForTesting(); 91 BrowserThread::GetBlockingPool()->FlushForTesting();
91 92
92 EXPECT_TRUE(base::PathExists(active_path)); 93 EXPECT_TRUE(base::PathExists(active_path));
93 EXPECT_FALSE(base::PathExists(inactive_path)); 94 EXPECT_FALSE(base::PathExists(inactive_path));
94 } 95 }
95 96
96 } // namespace content 97 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698