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

Side by Side Diff: remoting/host/desktop_shape_tracker_unittest.cc

Issue 1547473005: Switch to standard integer types in remoting/host/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « remoting/host/desktop_shape_tracker.h ('k') | remoting/host/desktop_shape_tracker_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // DesktopShapeTracker tests assume that there is at least one top-level 5 // DesktopShapeTracker tests assume that there is at least one top-level
6 // window on-screen. Currently we assume the presence of the Explorer 6 // window on-screen. Currently we assume the presence of the Explorer
7 // task bar window. 7 // task bar window.
8 8
9 #include "remoting/host/desktop_shape_tracker.h" 9 #include "remoting/host/desktop_shape_tracker.h"
10 10
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "build/build_config.h"
12 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
13 #include "third_party/webrtc/modules/desktop_capture/desktop_capture_options.h" 14 #include "third_party/webrtc/modules/desktop_capture/desktop_capture_options.h"
14 #include "third_party/webrtc/modules/desktop_capture/desktop_region.h" 15 #include "third_party/webrtc/modules/desktop_capture/desktop_region.h"
15 16
16 namespace remoting { 17 namespace remoting {
17 18
18 // Verify that the desktop shape tracker returns a non-empty region. 19 // Verify that the desktop shape tracker returns a non-empty region.
19 TEST(DesktopShapeTrackerTest, Basic) { 20 TEST(DesktopShapeTrackerTest, Basic) {
20 scoped_ptr<DesktopShapeTracker> shape_tracker = DesktopShapeTracker::Create( 21 scoped_ptr<DesktopShapeTracker> shape_tracker = DesktopShapeTracker::Create(
21 webrtc::DesktopCaptureOptions::CreateDefault()); 22 webrtc::DesktopCaptureOptions::CreateDefault());
22 23
23 // Shape tracker is not supported on all platforms yet. 24 // Shape tracker is not supported on all platforms yet.
24 #if defined(OS_WIN) 25 #if defined(OS_WIN)
25 shape_tracker->RefreshDesktopShape(); 26 shape_tracker->RefreshDesktopShape();
26 EXPECT_FALSE(shape_tracker->desktop_shape().is_empty()); 27 EXPECT_FALSE(shape_tracker->desktop_shape().is_empty());
27 #else 28 #else
28 EXPECT_FALSE(shape_tracker); 29 EXPECT_FALSE(shape_tracker);
29 #endif 30 #endif
30 } 31 }
31 32
32 } // namespace remoting 33 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/desktop_shape_tracker.h ('k') | remoting/host/desktop_shape_tracker_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698