input_test.mocks.dart 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. // Mocks generated by Mockito 5.0.15 from annotations
  2. // in xterm/test/frontend/input_test.dart.
  3. // Do not manually edit this file.
  4. import 'dart:async' as _i6;
  5. import 'package:mockito/mockito.dart' as _i1;
  6. import 'package:xterm/buffer/line/line.dart' as _i7;
  7. import 'package:xterm/input/keys.dart' as _i9;
  8. import 'package:xterm/mouse/position.dart' as _i8;
  9. import 'package:xterm/terminal/platform.dart' as _i3;
  10. import 'package:xterm/terminal/terminal_search.dart' as _i4;
  11. import 'package:xterm/terminal/terminal_ui_interaction.dart' as _i5;
  12. import 'package:xterm/theme/terminal_theme.dart' as _i2;
  13. // ignore_for_file: avoid_redundant_argument_values
  14. // ignore_for_file: avoid_setters_without_getters
  15. // ignore_for_file: comment_references
  16. // ignore_for_file: implementation_imports
  17. // ignore_for_file: invalid_use_of_visible_for_testing_member
  18. // ignore_for_file: prefer_const_constructors
  19. // ignore_for_file: unnecessary_parenthesis
  20. class _FakeTerminalTheme_0 extends _i1.Fake implements _i2.TerminalTheme {}
  21. class _FakePlatformBehavior_1 extends _i1.Fake implements _i3.PlatformBehavior {
  22. }
  23. class _FakeTerminalSearchResult_2 extends _i1.Fake
  24. implements _i4.TerminalSearchResult {}
  25. class _FakeTerminalSearchOptions_3 extends _i1.Fake
  26. implements _i4.TerminalSearchOptions {}
  27. /// A class which mocks [TerminalUiInteraction].
  28. ///
  29. /// See the documentation for Mockito's code generation for more information.
  30. class MockTerminalUiInteraction extends _i1.Mock
  31. implements _i5.TerminalUiInteraction {
  32. MockTerminalUiInteraction() {
  33. _i1.throwOnMissingStub(this);
  34. }
  35. @override
  36. _i2.TerminalTheme get theme => (super.noSuchMethod(Invocation.getter(#theme),
  37. returnValue: _FakeTerminalTheme_0()) as _i2.TerminalTheme);
  38. @override
  39. int get scrollOffsetFromBottom =>
  40. (super.noSuchMethod(Invocation.getter(#scrollOffsetFromBottom),
  41. returnValue: 0) as int);
  42. @override
  43. int get scrollOffsetFromTop => (super
  44. .noSuchMethod(Invocation.getter(#scrollOffsetFromTop), returnValue: 0)
  45. as int);
  46. @override
  47. int get bufferHeight =>
  48. (super.noSuchMethod(Invocation.getter(#bufferHeight), returnValue: 0)
  49. as int);
  50. @override
  51. int get terminalHeight =>
  52. (super.noSuchMethod(Invocation.getter(#terminalHeight), returnValue: 0)
  53. as int);
  54. @override
  55. int get terminalWidth =>
  56. (super.noSuchMethod(Invocation.getter(#terminalWidth), returnValue: 0)
  57. as int);
  58. @override
  59. int get invisibleHeight =>
  60. (super.noSuchMethod(Invocation.getter(#invisibleHeight), returnValue: 0)
  61. as int);
  62. @override
  63. bool get showCursor =>
  64. (super.noSuchMethod(Invocation.getter(#showCursor), returnValue: false)
  65. as bool);
  66. @override
  67. int get cursorY =>
  68. (super.noSuchMethod(Invocation.getter(#cursorY), returnValue: 0) as int);
  69. @override
  70. int get cursorX =>
  71. (super.noSuchMethod(Invocation.getter(#cursorX), returnValue: 0) as int);
  72. @override
  73. int get cursorColor =>
  74. (super.noSuchMethod(Invocation.getter(#cursorColor), returnValue: 0)
  75. as int);
  76. @override
  77. int get backgroundColor =>
  78. (super.noSuchMethod(Invocation.getter(#backgroundColor), returnValue: 0)
  79. as int);
  80. @override
  81. bool get dirty =>
  82. (super.noSuchMethod(Invocation.getter(#dirty), returnValue: false)
  83. as bool);
  84. @override
  85. _i3.PlatformBehavior get platform =>
  86. (super.noSuchMethod(Invocation.getter(#platform),
  87. returnValue: _FakePlatformBehavior_1()) as _i3.PlatformBehavior);
  88. @override
  89. bool get isReady =>
  90. (super.noSuchMethod(Invocation.getter(#isReady), returnValue: false)
  91. as bool);
  92. @override
  93. _i6.Future<int> get backendExited =>
  94. (super.noSuchMethod(Invocation.getter(#backendExited),
  95. returnValue: Future<int>.value(0)) as _i6.Future<int>);
  96. @override
  97. bool get isTerminated =>
  98. (super.noSuchMethod(Invocation.getter(#isTerminated), returnValue: false)
  99. as bool);
  100. @override
  101. String get composingString =>
  102. (super.noSuchMethod(Invocation.getter(#composingString), returnValue: '')
  103. as String);
  104. @override
  105. _i4.TerminalSearchResult get userSearchResult => (super.noSuchMethod(
  106. Invocation.getter(#userSearchResult),
  107. returnValue: _FakeTerminalSearchResult_2()) as _i4.TerminalSearchResult);
  108. @override
  109. int get numberOfSearchHits => (super
  110. .noSuchMethod(Invocation.getter(#numberOfSearchHits), returnValue: 0)
  111. as int);
  112. @override
  113. set currentSearchHit(int? currentSearchHit) =>
  114. super.noSuchMethod(Invocation.setter(#currentSearchHit, currentSearchHit),
  115. returnValueForMissingStub: null);
  116. @override
  117. _i4.TerminalSearchOptions get userSearchOptions =>
  118. (super.noSuchMethod(Invocation.getter(#userSearchOptions),
  119. returnValue: _FakeTerminalSearchOptions_3())
  120. as _i4.TerminalSearchOptions);
  121. @override
  122. set userSearchOptions(_i4.TerminalSearchOptions? options) =>
  123. super.noSuchMethod(Invocation.setter(#userSearchOptions, options),
  124. returnValueForMissingStub: null);
  125. @override
  126. set userSearchPattern(String? pattern) =>
  127. super.noSuchMethod(Invocation.setter(#userSearchPattern, pattern),
  128. returnValueForMissingStub: null);
  129. @override
  130. bool get isUserSearchActive =>
  131. (super.noSuchMethod(Invocation.getter(#isUserSearchActive),
  132. returnValue: false) as bool);
  133. @override
  134. set isUserSearchActive(bool? isUserSearchActive) => super.noSuchMethod(
  135. Invocation.setter(#isUserSearchActive, isUserSearchActive),
  136. returnValueForMissingStub: null);
  137. @override
  138. Set<void Function()> get listeners =>
  139. (super.noSuchMethod(Invocation.getter(#listeners),
  140. returnValue: <void Function()>{}) as Set<void Function()>);
  141. @override
  142. List<_i7.BufferLine> getVisibleLines() =>
  143. (super.noSuchMethod(Invocation.method(#getVisibleLines, []),
  144. returnValue: <_i7.BufferLine>[]) as List<_i7.BufferLine>);
  145. @override
  146. void refresh() => super.noSuchMethod(Invocation.method(#refresh, []),
  147. returnValueForMissingStub: null);
  148. @override
  149. void clearSelection() =>
  150. super.noSuchMethod(Invocation.method(#clearSelection, []),
  151. returnValueForMissingStub: null);
  152. @override
  153. void selectAll() => super.noSuchMethod(Invocation.method(#selectAll, []),
  154. returnValueForMissingStub: null);
  155. @override
  156. void onMouseTap(_i8.Position? position) =>
  157. super.noSuchMethod(Invocation.method(#onMouseTap, [position]),
  158. returnValueForMissingStub: null);
  159. @override
  160. void onMouseDoubleTap(_i8.Position? position) =>
  161. super.noSuchMethod(Invocation.method(#onMouseDoubleTap, [position]),
  162. returnValueForMissingStub: null);
  163. @override
  164. void onPanStart(_i8.Position? position) =>
  165. super.noSuchMethod(Invocation.method(#onPanStart, [position]),
  166. returnValueForMissingStub: null);
  167. @override
  168. void onPanUpdate(_i8.Position? position) =>
  169. super.noSuchMethod(Invocation.method(#onPanUpdate, [position]),
  170. returnValueForMissingStub: null);
  171. @override
  172. void setScrollOffsetFromBottom(int? offset) => super.noSuchMethod(
  173. Invocation.method(#setScrollOffsetFromBottom, [offset]),
  174. returnValueForMissingStub: null);
  175. @override
  176. int convertViewLineToRawLine(int? viewLine) => (super.noSuchMethod(
  177. Invocation.method(#convertViewLineToRawLine, [viewLine]),
  178. returnValue: 0) as int);
  179. @override
  180. void raiseOnInput(String? input) =>
  181. super.noSuchMethod(Invocation.method(#raiseOnInput, [input]),
  182. returnValueForMissingStub: null);
  183. @override
  184. void write(String? text) =>
  185. super.noSuchMethod(Invocation.method(#write, [text]),
  186. returnValueForMissingStub: null);
  187. @override
  188. void paste(String? data) =>
  189. super.noSuchMethod(Invocation.method(#paste, [data]),
  190. returnValueForMissingStub: null);
  191. @override
  192. void resize(int? newWidth, int? newHeight, int? newPixelWidth,
  193. int? newPixelHeight) =>
  194. super.noSuchMethod(
  195. Invocation.method(
  196. #resize, [newWidth, newHeight, newPixelWidth, newPixelHeight]),
  197. returnValueForMissingStub: null);
  198. @override
  199. void keyInput(_i9.TerminalKey? key,
  200. {bool? ctrl = false,
  201. bool? alt = false,
  202. bool? shift = false,
  203. bool? mac = false,
  204. String? character}) =>
  205. super.noSuchMethod(
  206. Invocation.method(#keyInput, [
  207. key
  208. ], {
  209. #ctrl: ctrl,
  210. #alt: alt,
  211. #shift: shift,
  212. #mac: mac,
  213. #character: character
  214. }),
  215. returnValueForMissingStub: null);
  216. @override
  217. void terminateBackend() =>
  218. super.noSuchMethod(Invocation.method(#terminateBackend, []),
  219. returnValueForMissingStub: null);
  220. @override
  221. void updateComposingString(String? value) =>
  222. super.noSuchMethod(Invocation.method(#updateComposingString, [value]),
  223. returnValueForMissingStub: null);
  224. @override
  225. String toString() => super.toString();
  226. @override
  227. void addListener(void Function()? listener) =>
  228. super.noSuchMethod(Invocation.method(#addListener, [listener]),
  229. returnValueForMissingStub: null);
  230. @override
  231. void removeListener(void Function()? listener) =>
  232. super.noSuchMethod(Invocation.method(#removeListener, [listener]),
  233. returnValueForMissingStub: null);
  234. @override
  235. void notifyListeners() =>
  236. super.noSuchMethod(Invocation.method(#notifyListeners, []),
  237. returnValueForMissingStub: null);
  238. }