Mercurial > 510Connectbot
comparison tests/src/com/five_ten_sg/connectbot/mock/NullTransport.java @ 0:0ce5cc452d02
initial version
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 22 May 2014 10:41:19 -0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:0ce5cc452d02 |
---|---|
1 /* | |
2 * ConnectBot: simple, powerful, open-source SSH client for Android | |
3 * Copyright 2007 Kenny Root, Jeffrey Sharkey | |
4 * | |
5 * Licensed under the Apache License, Version 2.0 (the "License"); | |
6 * you may not use this file except in compliance with the License. | |
7 * You may obtain a copy of the License at | |
8 * | |
9 * http://www.apache.org/licenses/LICENSE-2.0 | |
10 * | |
11 * Unless required by applicable law or agreed to in writing, software | |
12 * distributed under the License is distributed on an "AS IS" BASIS, | |
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
14 * See the License for the specific language governing permissions and | |
15 * limitations under the License. | |
16 */ | |
17 | |
18 package com.five_ten_sg.connectbot.mock; | |
19 | |
20 import java.io.IOException; | |
21 import java.util.Map; | |
22 | |
23 import com.five_ten_sg.connectbot.bean.HostBean; | |
24 import com.five_ten_sg.connectbot.service.TerminalBridge; | |
25 import com.five_ten_sg.connectbot.service.TerminalManager; | |
26 import com.five_ten_sg.connectbot.transport.AbsTransport; | |
27 | |
28 import android.net.Uri; | |
29 | |
30 /** | |
31 * @author kenny | |
32 * | |
33 */ | |
34 public class NullTransport extends AbsTransport { | |
35 | |
36 /** | |
37 * | |
38 */ | |
39 public NullTransport() { | |
40 // TODO Auto-generated constructor stub | |
41 } | |
42 | |
43 /** | |
44 * @param host | |
45 * @param bridge | |
46 * @param manager | |
47 */ | |
48 public NullTransport(HostBean host, TerminalBridge bridge, | |
49 TerminalManager manager) { | |
50 super(host, bridge, manager); | |
51 // TODO Auto-generated constructor stub | |
52 } | |
53 | |
54 @Override | |
55 public void close() { | |
56 // TODO Auto-generated method stub | |
57 } | |
58 | |
59 @Override | |
60 public void connect() { | |
61 // TODO Auto-generated method stub | |
62 } | |
63 | |
64 @Override | |
65 public HostBean createHost(Uri uri) { | |
66 // TODO Auto-generated method stub | |
67 return null; | |
68 } | |
69 | |
70 @Override | |
71 public void flush() throws IOException { | |
72 // TODO Auto-generated method stub | |
73 } | |
74 | |
75 @Override | |
76 public String getDefaultNickname(String username, String hostname, int port) { | |
77 // TODO Auto-generated method stub | |
78 return null; | |
79 } | |
80 | |
81 @Override | |
82 public int getDefaultPort() { | |
83 // TODO Auto-generated method stub | |
84 return 0; | |
85 } | |
86 | |
87 @Override | |
88 public void getSelectionArgs(Uri uri, Map<String, String> selection) { | |
89 // TODO Auto-generated method stub | |
90 } | |
91 | |
92 @Override | |
93 public boolean isConnected() { | |
94 // TODO Auto-generated method stub | |
95 return false; | |
96 } | |
97 | |
98 @Override | |
99 public boolean isSessionOpen() { | |
100 // TODO Auto-generated method stub | |
101 return false; | |
102 } | |
103 | |
104 @Override | |
105 public int read(byte[] buffer, int offset, int length) throws IOException { | |
106 // TODO Auto-generated method stub | |
107 return 0; | |
108 } | |
109 | |
110 @Override | |
111 public void setDimensions(int columns, int rows, int width, int height) { | |
112 // TODO Auto-generated method stub | |
113 } | |
114 | |
115 @Override | |
116 public void write(byte[] buffer) throws IOException { | |
117 // TODO Auto-generated method stub | |
118 } | |
119 | |
120 @Override | |
121 public void write(int c) throws IOException { | |
122 // TODO Auto-generated method stub | |
123 } | |
124 | |
125 @Override | |
126 public boolean usesNetwork() { | |
127 // TODO Auto-generated method stub | |
128 return false; | |
129 } | |
130 | |
131 } |