5#ifndef FLUTTER_SHELL_PLATFORM_FUCHSIA_FLUTTER_TESTS_FAKES_PLATFORM_MESSAGE_H_
6#define FLUTTER_SHELL_PLATFORM_FUCHSIA_FLUTTER_TESTS_FAKES_PLATFORM_MESSAGE_H_
8#include <gtest/gtest.h>
11#include "flutter/lib/ui/window/platform_message.h"
12#include "third_party/rapidjson/include/rapidjson/document.h"
28 EXPECT_EQ(expected, response_);
34 std::unique_ptr<PlatformMessage>
WithMessage(std::string channel,
36 return std::make_unique<PlatformMessage>(
43 void Complete(std::unique_ptr<fml::Mapping> data)
override {
45 std::string(data->GetMapping(), data->GetMapping() + data->GetSize());
55 void FinalizeComplete() {
57 <<
"Platform message responses can only be completed once!";
60 std::string response_;
static MallocMapping Copy(const T *begin, const T *end)
RefPtr< T > AdoptRef(T *ptr)
#define EXPECT_TRUE(handle)