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

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

Issue 2456563002: Remove supports_touch_events flag from BasicDesktopEnvironment (Closed)
Patch Set: Created 4 years, 1 month 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #include "remoting/host/ipc_desktop_environment.h" 5 #include "remoting/host/ipc_desktop_environment.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 setup_run_loop_->Run(); 507 setup_run_loop_->Run();
508 508
509 // Stop the test. 509 // Stop the test.
510 DeleteDesktopEnvironment(); 510 DeleteDesktopEnvironment();
511 } 511 }
512 512
513 // Check touchEvents capability is set when the desktop environment can 513 // Check touchEvents capability is set when the desktop environment can
514 // inject touch events. 514 // inject touch events.
515 TEST_F(IpcDesktopEnvironmentTest, TouchEventsCapabilities) { 515 TEST_F(IpcDesktopEnvironmentTest, TouchEventsCapabilities) {
516 // Create an environment with multi touch enabled. 516 // Create an environment with multi touch enabled.
517 desktop_environment_factory_->set_supports_touch_events(true);
518 desktop_environment_ = desktop_environment_factory_->Create( 517 desktop_environment_ = desktop_environment_factory_->Create(
519 client_session_control_factory_.GetWeakPtr()); 518 client_session_control_factory_.GetWeakPtr());
520 519
521 std::unique_ptr<protocol::MockClipboardStub> clipboard_stub( 520 std::unique_ptr<protocol::MockClipboardStub> clipboard_stub(
522 new protocol::MockClipboardStub()); 521 new protocol::MockClipboardStub());
523 EXPECT_CALL(*clipboard_stub, InjectClipboardEvent(_)) 522 EXPECT_CALL(*clipboard_stub, InjectClipboardEvent(_))
524 .Times(0); 523 .Times(0);
525 524
526 EXPECT_EQ("rateLimitResizeRequests touchEvents", 525 EXPECT_EQ("rateLimitResizeRequests touchEvents",
527 desktop_environment_->GetCapabilities()); 526 desktop_environment_->GetCapabilities());
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 .WillOnce(InvokeWithoutArgs( 755 .WillOnce(InvokeWithoutArgs(
757 this, &IpcDesktopEnvironmentTest::DeleteDesktopEnvironment)); 756 this, &IpcDesktopEnvironmentTest::DeleteDesktopEnvironment));
758 757
759 // Change the desktop resolution. 758 // Change the desktop resolution.
760 screen_controls_->SetScreenResolution(ScreenResolution( 759 screen_controls_->SetScreenResolution(ScreenResolution(
761 webrtc::DesktopSize(100, 100), 760 webrtc::DesktopSize(100, 100),
762 webrtc::DesktopVector(96, 96))); 761 webrtc::DesktopVector(96, 96)));
763 } 762 }
764 763
765 } // namespace remoting 764 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698