| OLD | NEW |
| (Empty) |
| 1 /* | |
| 2 * Copyright 2010 The WebRTC Project Authors. All rights reserved. | |
| 3 * | |
| 4 * Use of this source code is governed by a BSD-style license | |
| 5 * that can be found in the LICENSE file in the root of the source | |
| 6 * tree. An additional intellectual property rights grant can be found | |
| 7 * in the file PATENTS. All contributing project authors may | |
| 8 * be found in the AUTHORS file in the root of the source tree. | |
| 9 */ | |
| 10 | |
| 11 #include "webrtc/base/gunit.h" | |
| 12 #include "webrtc/base/x11windowpicker.h" | |
| 13 #include "webrtc/base/logging.h" | |
| 14 #include "webrtc/base/testutils.h" | |
| 15 #include "webrtc/base/windowpicker.h" | |
| 16 | |
| 17 #if !defined(WEBRTC_LINUX) || defined(WEBRTC_ANDROID) | |
| 18 #error Only for Linux | |
| 19 #endif | |
| 20 | |
| 21 namespace rtc { | |
| 22 | |
| 23 TEST(X11WindowPickerTest, TestGetWindowList) { | |
| 24 MAYBE_SKIP_SCREENCAST_TEST(); | |
| 25 X11WindowPicker window_picker; | |
| 26 WindowDescriptionList descriptions; | |
| 27 window_picker.Init(); | |
| 28 window_picker.GetWindowList(&descriptions); | |
| 29 } | |
| 30 | |
| 31 TEST(X11WindowPickerTest, TestGetDesktopList) { | |
| 32 MAYBE_SKIP_SCREENCAST_TEST(); | |
| 33 X11WindowPicker window_picker; | |
| 34 DesktopDescriptionList descriptions; | |
| 35 EXPECT_TRUE(window_picker.Init()); | |
| 36 EXPECT_TRUE(window_picker.GetDesktopList(&descriptions)); | |
| 37 EXPECT_TRUE(descriptions.size() > 0); | |
| 38 } | |
| 39 | |
| 40 } // namespace rtc | |
| OLD | NEW |