Chromium Code Reviews| Index: remoting/host/resizing_host_observer_unittest.cc |
| diff --git a/remoting/host/resizing_host_observer_unittest.cc b/remoting/host/resizing_host_observer_unittest.cc |
| index f318bc5d8ea5724e3cad69ae6749b448fff78463..cc4019aa89649e0634149f8410be5e20579ef49a 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; |
|
Jamie
2013/03/15 22:06:27
Anonymous namespace?
alexeypa (please no reviews)
2013/03/15 22:32:12
Not needed. See my previous comment.
|
| + |
| 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(); |
| } |