summaryrefslogtreecommitdiffstats
path: root/remoting/host/resizing_host_observer_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/host/resizing_host_observer_unittest.cc')
-rw-r--r--remoting/host/resizing_host_observer_unittest.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/remoting/host/resizing_host_observer_unittest.cc b/remoting/host/resizing_host_observer_unittest.cc
index f318bc5..cc4019a 100644
--- a/remoting/host/resizing_host_observer_unittest.cc
+++ b/remoting/host/resizing_host_observer_unittest.cc
@@ -8,6 +8,7 @@
#include "base/logging.h"
#include "remoting/host/desktop_resizer.h"
#include "remoting/host/resizing_host_observer.h"
+#include "remoting/host/screen_resolution.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkSize.h"
@@ -15,6 +16,8 @@ std::ostream& operator<<(std::ostream& os, const SkISize& size) {
return os << size.width() << "x" << size.height();
}
+const int kDefaultDPI = 96;
+
namespace remoting {
class FakeDesktopResizer : public DesktopResizer {
@@ -79,7 +82,8 @@ class ResizingHostObserverTest : public testing::Test {
}
SkISize GetBestSize(const SkISize& client_size) {
- resizing_host_observer_->OnClientResolutionChanged(SkIPoint(), client_size);
+ resizing_host_observer_->SetScreenResolution(ScreenResolution(
+ client_size, SkIPoint::Make(kDefaultDPI, kDefaultDPI)));
return desktop_resizer_->GetCurrentSize();
}