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

Unified Diff: remoting/host/resizing_host_observer_unittest.cc

Issue 12386035: Moving host status events monitoring to a separate interface (HostStatusMonitor). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 10 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/resizing_host_observer.cc ('k') | remoting/remoting.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3d5d1e052da105b75195e2894b238027ac6e2e34..ec0ae10bb021244af5f7af0a47acffc72c2f73a2 100644
--- a/remoting/host/resizing_host_observer_unittest.cc
+++ b/remoting/host/resizing_host_observer_unittest.cc
@@ -2,13 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "remoting/host/resizing_host_observer.h"
-#include "remoting/host/desktop_resizer.h"
-
#include <list>
#include "base/compiler_specific.h"
#include "base/logging.h"
+#include "remoting/host/desktop_resizer.h"
+#include "remoting/host/host_status_monitor_fake.h"
+#include "remoting/host/resizing_host_observer.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkSize.h"
@@ -67,8 +67,9 @@ class ResizingHostObserverTest : public testing::Test {
public:
void SetDesktopResizer(FakeDesktopResizer* desktop_resizer) {
CHECK(!desktop_resizer_.get()) << "Call SetDeskopResizer once per test";
- resizing_host_observer_.reset(new ResizingHostObserver(desktop_resizer,
- NULL));
+ resizing_host_observer_.reset(
+ new ResizingHostObserver(desktop_resizer,
+ host_status_monitor_.AsWeakPtr()));
desktop_resizer_.reset(desktop_resizer);
resizing_host_observer_->OnClientAuthenticated("");
}
@@ -103,6 +104,7 @@ class ResizingHostObserverTest : public testing::Test {
private:
scoped_ptr<ResizingHostObserver> resizing_host_observer_;
scoped_ptr<FakeDesktopResizer> desktop_resizer_;
+ HostStatusMonitorFake host_status_monitor_;
};
// Check that the host is not resized if GetSupportedSizes returns an empty
« no previous file with comments | « remoting/host/resizing_host_observer.cc ('k') | remoting/remoting.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698