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

Unified Diff: remoting/client/ios/bridge/host_proxy_unittest.mm

Issue 2829853003: Remove crufty bridge code from old CRD iOS app. (Closed)
Patch Set: Fix remoting/display proto import issue. Created 3 years, 8 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/client/ios/bridge/host_proxy.mm ('k') | remoting/client/ios/display/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/ios/bridge/host_proxy_unittest.mm
diff --git a/remoting/client/ios/bridge/host_proxy_unittest.mm b/remoting/client/ios/bridge/host_proxy_unittest.mm
deleted file mode 100644
index 79f37ccd538ff2a3b584f0de4cf596f94711b9b3..0000000000000000000000000000000000000000
--- a/remoting/client/ios/bridge/host_proxy_unittest.mm
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright 2016 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.
-
-#if !defined(__has_feature) || !__has_feature(objc_arc)
-#error "This file requires ARC support."
-#endif
-
-#import "remoting/client/ios/bridge/host_proxy.h"
-
-#import "base/compiler_specific.h"
-#import "testing/gtest_mac.h"
-
-namespace remoting {
-
-class HostProxyTest : public ::testing::Test {
- protected:
- void SetUp() override { hostProxy_ = [[HostProxy alloc] init]; }
-
- void CallPassThroughFunctions() {
- [hostProxy_ mouseAction:webrtc::DesktopVector(0, 0)
- wheelDelta:webrtc::DesktopVector(0, 0)
- whichButton:0
- buttonDown:NO];
- [hostProxy_ keyboardAction:0 keyDown:NO];
- }
-
- HostProxy* hostProxy_;
-};
-
-TEST_F(HostProxyTest, ConnectDisconnect) {
- CallPassThroughFunctions();
-
- ASSERT_FALSE([hostProxy_ isConnected]);
- [hostProxy_ connectToHost:@""
- authToken:@""
- jabberId:@""
- hostId:@""
- publicKey:@""
- delegate:nil];
- ASSERT_TRUE([hostProxy_ isConnected]);
-
- CallPassThroughFunctions();
-
- [hostProxy_ disconnectFromHost];
- ASSERT_FALSE([hostProxy_ isConnected]);
-
- CallPassThroughFunctions();
-}
-
-} // namespace remoting
« no previous file with comments | « remoting/client/ios/bridge/host_proxy.mm ('k') | remoting/client/ios/display/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698