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

Unified Diff: media/capture/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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/capture/system_message_window_win.cc ('k') | media/device_monitors/device_monitor_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/capture/system_message_window_win_unittest.cc
diff --git a/media/capture/system_message_window_win_unittest.cc b/media/capture/system_message_window_win_unittest.cc
deleted file mode 100644
index 80ff75ce5c998e6fc1a9f51a95575dc16c38a2f1..0000000000000000000000000000000000000000
--- a/media/capture/system_message_window_win_unittest.cc
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "media/capture/system_message_window_win.h"
-
-#include <dbt.h>
-#include <string>
-#include <vector>
-
-#include "base/files/file_path.h"
-#include "base/message_loop/message_loop.h"
-#include "base/system_monitor/system_monitor.h"
-#include "base/test/mock_devices_changed_observer.h"
-#include "testing/gmock/include/gmock/gmock.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace media {
-
-class SystemMessageWindowWinTest : public testing::Test {
- public:
- ~SystemMessageWindowWinTest() override {}
-
- protected:
- void SetUp() override {
- system_monitor_.AddDevicesChangedObserver(&observer_);
- }
-
- base::MessageLoop message_loop_;
- base::SystemMonitor system_monitor_;
- base::MockDevicesChangedObserver observer_;
- SystemMessageWindowWin window_;
-};
-
-TEST_F(SystemMessageWindowWinTest, DevicesChanged) {
- EXPECT_CALL(observer_, OnDevicesChanged(testing::_)).Times(1);
- window_.OnDeviceChange(DBT_DEVNODES_CHANGED, NULL);
- message_loop_.RunUntilIdle();
-}
-
-TEST_F(SystemMessageWindowWinTest, RandomMessage) {
- window_.OnDeviceChange(DBT_DEVICEQUERYREMOVE, NULL);
- message_loop_.RunUntilIdle();
-}
-
-} // namespace media
« no previous file with comments | « media/capture/system_message_window_win.cc ('k') | media/device_monitors/device_monitor_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698