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

Side by Side Diff: components/storage_monitor/storage_monitor_linux_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // StorageMonitorLinux unit tests. 5 // StorageMonitorLinux unit tests.
6 6
7 #include "components/storage_monitor/storage_monitor_linux.h" 7 #include "components/storage_monitor/storage_monitor_linux.h"
8 8
9 #include <mntent.h> 9 #include <mntent.h>
10 #include <stddef.h> 10 #include <stddef.h>
11 #include <stdint.h> 11 #include <stdint.h>
12 #include <stdio.h> 12 #include <stdio.h>
13 13
14 #include <memory> 14 #include <memory>
15 #include <string> 15 #include <string>
16 16
17 #include "base/files/file_util.h" 17 #include "base/files/file_util.h"
18 #include "base/files/scoped_temp_dir.h" 18 #include "base/files/scoped_temp_dir.h"
19 #include "base/logging.h" 19 #include "base/logging.h"
20 #include "base/macros.h" 20 #include "base/macros.h"
21 #include "base/message_loop/message_loop.h"
21 #include "base/run_loop.h" 22 #include "base/run_loop.h"
22 #include "base/strings/utf_string_conversions.h" 23 #include "base/strings/utf_string_conversions.h"
23 #include "base/threading/thread_task_runner_handle.h" 24 #include "base/threading/thread_task_runner_handle.h"
24 #include "components/storage_monitor/mock_removable_storage_observer.h" 25 #include "components/storage_monitor/mock_removable_storage_observer.h"
25 #include "components/storage_monitor/removable_device_constants.h" 26 #include "components/storage_monitor/removable_device_constants.h"
26 #include "components/storage_monitor/storage_info.h" 27 #include "components/storage_monitor/storage_info.h"
27 #include "components/storage_monitor/storage_monitor.h" 28 #include "components/storage_monitor/storage_monitor.h"
28 #include "components/storage_monitor/test_storage_monitor.h" 29 #include "components/storage_monitor/test_storage_monitor.h"
29 #include "content/public/test/test_browser_thread_bundle.h" 30 #include "content/public/test/test_browser_thread_bundle.h"
30 #include "testing/gtest/include/gtest/gtest.h" 31 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 GetStorageSize(test_path_a)); 671 GetStorageSize(test_path_a));
671 EXPECT_EQ(GetDevicePartitionSize(kDeviceNoDCIM), 672 EXPECT_EQ(GetDevicePartitionSize(kDeviceNoDCIM),
672 GetStorageSize(test_path_b)); 673 GetStorageSize(test_path_b));
673 EXPECT_EQ(GetDevicePartitionSize(kInvalidPath), 674 EXPECT_EQ(GetDevicePartitionSize(kInvalidPath),
674 GetStorageSize(base::FilePath(kInvalidPath))); 675 GetStorageSize(base::FilePath(kInvalidPath)));
675 } 676 }
676 677
677 } // namespace 678 } // namespace
678 679
679 } // namespace storage_monitor 680 } // namespace storage_monitor
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698