input_test.mocks.dart 9.4 KB

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