From 63f5b353b1278abb4f23f6c2fbb3e40933bdc2cf Mon Sep 17 00:00:00 2001 From: Jaeheon Yi Date: Mon, 15 Aug 2022 13:54:16 -0700 Subject: [PATCH] [fuchsia] Adjust FakeFocuser inheritance --- shell/platform/fuchsia/flutter/tests/fakes/focuser.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/shell/platform/fuchsia/flutter/tests/fakes/focuser.h b/shell/platform/fuchsia/flutter/tests/fakes/focuser.h index 275af5671f87a..aeaf8755d5661 100644 --- a/shell/platform/fuchsia/flutter/tests/fakes/focuser.h +++ b/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; };