From e8f7bc4f7d4b025ad51d89891484090d610dde9a Mon Sep 17 00:00:00 2001 From: Jaeheon Yi Date: Mon, 15 Aug 2022 15:56:27 -0700 Subject: [PATCH] [fuchsia] Adjust FakeFocuser inheritance (flutter/engine#35413) --- .../platform/fuchsia/flutter/tests/fakes/focuser.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/engine/src/flutter/shell/platform/fuchsia/flutter/tests/fakes/focuser.h b/engine/src/flutter/shell/platform/fuchsia/flutter/tests/fakes/focuser.h index 275af5671f..aeaf8755d5 100644 --- a/engine/src/flutter/shell/platform/fuchsia/flutter/tests/fakes/focuser.h +++ b/engine/src/flutter/shell/platform/fuchsia/flutter/tests/fakes/focuser.h @@ -6,12 +6,17 @@ #define FLUTTER_SHELL_PLATFORM_FUCHSIA_TESTS_FAKES_FOCUSER_H_ #include +#include + +#include + +#include "flutter/fml/logging.h" using Focuser = fuchsia::ui::views::Focuser; namespace flutter_runner::testing { -class FakeFocuser : public Focuser { +class FakeFocuser : public fuchsia::ui::views::testing::Focuser_TestBase { public: bool request_focus_called() const { return request_focus_called_; } @@ -32,6 +37,11 @@ class FakeFocuser : public Focuser { callback(std::move(result)); } + void NotImplemented_(const std::string& name) { + FML_LOG(FATAL) << "flutter_runner::Testing::FakeFocuser does not implement " + << name; + } + bool request_focus_called_ = false; bool fail_request_focus_ = false; };