summaryrefslogtreecommitdiffstats
path: root/verifier_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'verifier_test.cpp')
-rw-r--r--verifier_test.cpp24
1 files changed, 23 insertions, 1 deletions
diff --git a/verifier_test.cpp b/verifier_test.cpp
index 82546ed..a9d42c0 100644
--- a/verifier_test.cpp
+++ b/verifier_test.cpp
@@ -141,12 +141,34 @@ class FakeUI : public RecoveryUI {
vfprintf(stderr, fmt, ap);
va_end(ap);
}
+ void PrintOnScreenOnly(const char* fmt, ...) {
+ va_list ap;
+ va_start(ap, fmt);
+ vfprintf(stderr, fmt, ap);
+ va_end(ap);
+ }
void ShowFile(const char*) { }
+ void ClearText() {}
+
+ virtual void DialogShowInfo(const char* text) {}
+ virtual void DialogShowError(const char* text) {}
+ virtual void DialogShowErrorLog(const char* text) {}
+ virtual int DialogShowing() const { return 0; }
+ bool DialogDismissable() const { return false; }
+ virtual void DialogDismiss() {}
+ virtual void SetHeadlessMode() {}
void StartMenu(const char* const * headers, const char* const * items,
int initial_selection) { }
- int SelectMenu(int sel) { return 0; }
+ int SelectMenu(int sel, bool abs = false) { return 0; }
void EndMenu() { }
+
+ virtual int MenuItemStart() const { return 0; }
+ virtual int MenuItemHeight() const { return 0; }
+
+ virtual int GetSysbarHeight() { return 0; }
+ virtual int GetSysbarState() { return 0; }
+ virtual void SetSysbarState(int state) {}
};
void