2 * Copyright 2010 The WebRTC Project Authors. All rights reserved.
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.
11 #include "webrtc/base/gunit.h"
12 #include "webrtc/base/linuxwindowpicker.h"
13 #include "webrtc/base/logging.h"
14 #include "webrtc/base/testutils.h"
15 #include "webrtc/base/windowpicker.h"
17 #if !defined(WEBRTC_LINUX) || defined(WEBRTC_ANDROID)
23 TEST(LinuxWindowPickerTest, TestGetWindowList) {
24 MAYBE_SKIP_SCREENCAST_TEST();
25 LinuxWindowPicker window_picker;
26 WindowDescriptionList descriptions;
28 window_picker.GetWindowList(&descriptions);
31 TEST(LinuxWindowPickerTest, TestGetDesktopList) {
32 MAYBE_SKIP_SCREENCAST_TEST();
33 LinuxWindowPicker window_picker;
34 DesktopDescriptionList descriptions;
35 EXPECT_TRUE(window_picker.Init());
36 EXPECT_TRUE(window_picker.GetDesktopList(&descriptions));
37 EXPECT_TRUE(descriptions.size() > 0);