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

Unified Diff: remoting/host/fake_desktop_environment.cc

Issue 394883008: Add basic perf tests for chromoting protocol. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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/fake_desktop_environment.h ('k') | remoting/host/fake_screen_capturer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/fake_desktop_environment.cc
diff --git a/remoting/host/fake_desktop_environment.cc b/remoting/host/fake_desktop_environment.cc
new file mode 100644
index 0000000000000000000000000000000000000000..5e02ec8f54763211aea8e0df22d702dfe36155ef
--- /dev/null
+++ b/remoting/host/fake_desktop_environment.cc
@@ -0,0 +1,97 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "remoting/host/fake_desktop_environment.h"
+
+#include "remoting/host/audio_capturer.h"
+#include "remoting/host/fake_screen_capturer.h"
+#include "remoting/host/gnubby_auth_handler.h"
+#include "remoting/host/input_injector.h"
+
+namespace remoting {
+
+FakeInputInjector::FakeInputInjector() {}
+FakeInputInjector::~FakeInputInjector() {}
+
+void FakeInputInjector::Start(
+ scoped_ptr<protocol::ClipboardStub> client_clipboard) {
+}
+
+void FakeInputInjector::InjectKeyEvent(const protocol::KeyEvent& event) {
+}
+
+void FakeInputInjector::InjectTextEvent(const protocol::TextEvent& event) {
+}
+
+void FakeInputInjector::InjectMouseEvent(const protocol::MouseEvent& event) {
+}
+
+void FakeInputInjector::InjectClipboardEvent(
+ const protocol::ClipboardEvent& event) {
+}
+
+FakeScreenControls::FakeScreenControls() {}
+FakeScreenControls::~FakeScreenControls() {}
+
+void FakeScreenControls::SetScreenResolution(
+ const ScreenResolution& resolution) {
+}
+
+FakeDesktopEnvironment::FakeDesktopEnvironment() {}
+
+FakeDesktopEnvironment::~FakeDesktopEnvironment() {}
+
+// DesktopEnvironment implementation.
+scoped_ptr<AudioCapturer> FakeDesktopEnvironment::CreateAudioCapturer() {
+ return scoped_ptr<AudioCapturer>();
+}
+
+scoped_ptr<InputInjector> FakeDesktopEnvironment::CreateInputInjector() {
+ return scoped_ptr<InputInjector>(new FakeInputInjector());
+}
+
+scoped_ptr<ScreenControls> FakeDesktopEnvironment::CreateScreenControls() {
+ return scoped_ptr<ScreenControls>(new FakeScreenControls());
+}
+
+scoped_ptr<webrtc::ScreenCapturer>
+FakeDesktopEnvironment::CreateVideoCapturer() {
+ scoped_ptr<FakeScreenCapturer> result(new FakeScreenCapturer());
+ if (!frame_generator_.is_null())
+ result->set_frame_generator(frame_generator_);
+ return result.PassAs<webrtc::ScreenCapturer>();
+}
+
+std::string FakeDesktopEnvironment::GetCapabilities() const {
+ return std::string();
+}
+
+void FakeDesktopEnvironment::SetCapabilities(const std::string& capabilities) {}
+
+scoped_ptr<GnubbyAuthHandler> FakeDesktopEnvironment::CreateGnubbyAuthHandler(
+ protocol::ClientStub* client_stub) {
+ return scoped_ptr<GnubbyAuthHandler>();
+}
+
+FakeDesktopEnvironmentFactory::FakeDesktopEnvironmentFactory() {}
+FakeDesktopEnvironmentFactory::~FakeDesktopEnvironmentFactory() {}
+
+// DesktopEnvironmentFactory implementation.
+scoped_ptr<DesktopEnvironment> FakeDesktopEnvironmentFactory::Create(
+ base::WeakPtr<ClientSessionControl> client_session_control) {
+ scoped_ptr<FakeDesktopEnvironment> result(new FakeDesktopEnvironment());
+ result->set_frame_generator(frame_generator_);
+ return result.PassAs<DesktopEnvironment>();
+}
+
+void FakeDesktopEnvironmentFactory::SetEnableCurtaining(bool enable) {}
+
+bool FakeDesktopEnvironmentFactory::SupportsAudioCapture() const {
+ return false;
+}
+
+void FakeDesktopEnvironmentFactory::SetEnableGnubbyAuth(bool enable) {}
+
+
+} // namespace remoting
« no previous file with comments | « remoting/host/fake_desktop_environment.h ('k') | remoting/host/fake_screen_capturer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698