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

Side by Side Diff: components/storage_monitor/media_storage_util_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 #include <string> 5 #include <string>
6 6
7 #include "base/files/file_util.h" 7 #include "base/files/file_util.h"
8 #include "base/files/scoped_temp_dir.h" 8 #include "base/files/scoped_temp_dir.h"
9 #include "base/message_loop/message_loop.h"
9 #include "base/run_loop.h" 10 #include "base/run_loop.h"
10 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
11 #include "base/synchronization/waitable_event.h" 12 #include "base/synchronization/waitable_event.h"
12 #include "components/storage_monitor/media_storage_util.h" 13 #include "components/storage_monitor/media_storage_util.h"
13 #include "components/storage_monitor/removable_device_constants.h" 14 #include "components/storage_monitor/removable_device_constants.h"
14 #include "components/storage_monitor/storage_monitor.h" 15 #include "components/storage_monitor/storage_monitor.h"
15 #include "components/storage_monitor/test_storage_monitor.h" 16 #include "components/storage_monitor/test_storage_monitor.h"
16 #include "content/public/browser/browser_thread.h" 17 #include "content/public/browser/browser_thread.h"
17 #include "content/public/test/test_browser_thread_bundle.h" 18 #include "content/public/test/test_browser_thread_bundle.h"
18 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 event.Reset(); 148 event.Reset();
148 BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE, 149 BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE,
149 base::Bind(&MediaStorageUtil::FilterAttachedDevices, 150 base::Bind(&MediaStorageUtil::FilterAttachedDevices,
150 base::Unretained(&devices), signal_event)); 151 base::Unretained(&devices), signal_event));
151 event.Wait(); 152 event.Wait();
152 153
153 EXPECT_TRUE(devices.find(kImageCaptureDeviceId) != devices.end()); 154 EXPECT_TRUE(devices.find(kImageCaptureDeviceId) != devices.end());
154 } 155 }
155 156
156 } // namespace storage_monitor 157 } // namespace storage_monitor
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698