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

Side by Side Diff: media/device_monitors/system_message_window_win_unittest.cc

Issue 2224643002: Move device monitors out of //media/capture into //media/device_monitors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « media/device_monitors/system_message_window_win.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "media/capture/system_message_window_win.h" 5 #include "media/device_monitors/system_message_window_win.h"
6 6
7 #include <dbt.h> 7 #include <dbt.h>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
13 #include "base/system_monitor/system_monitor.h" 13 #include "base/system_monitor/system_monitor.h"
14 #include "base/test/mock_devices_changed_observer.h" 14 #include "base/test/mock_devices_changed_observer.h"
15 #include "testing/gmock/include/gmock/gmock.h" 15 #include "testing/gmock/include/gmock/gmock.h"
(...skipping 21 matching lines...) Expand all
37 window_.OnDeviceChange(DBT_DEVNODES_CHANGED, NULL); 37 window_.OnDeviceChange(DBT_DEVNODES_CHANGED, NULL);
38 message_loop_.RunUntilIdle(); 38 message_loop_.RunUntilIdle();
39 } 39 }
40 40
41 TEST_F(SystemMessageWindowWinTest, RandomMessage) { 41 TEST_F(SystemMessageWindowWinTest, RandomMessage) {
42 window_.OnDeviceChange(DBT_DEVICEQUERYREMOVE, NULL); 42 window_.OnDeviceChange(DBT_DEVICEQUERYREMOVE, NULL);
43 message_loop_.RunUntilIdle(); 43 message_loop_.RunUntilIdle();
44 } 44 }
45 45
46 } // namespace media 46 } // namespace media
OLDNEW
« no previous file with comments | « media/device_monitors/system_message_window_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698