Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Prev Previous commit
Next Next commit
Temporary logging for failures on bot
  • Loading branch information
stuartmorgan-g committed Nov 19, 2020
commit 2f24be21df3f6735edefd48060a3077674229fa2
2 changes: 2 additions & 0 deletions shell/platform/windows/flutter_windows_engine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ FlutterWindowsEngine::~FlutterWindowsEngine() {
}

bool FlutterWindowsEngine::RunWithEntrypoint(const char* entrypoint) {
std::cout << "Called RunWithEntrypoint on " << std::hex << (intptr_t)(this)
<< std::endl;
if (!project_->HasValidPaths()) {
std::cerr << "Missing or unresolvable paths to assets." << std::endl;
return false;
Expand Down
10 changes: 10 additions & 0 deletions shell/platform/windows/flutter_windows_engine_unittests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#include "flutter/shell/platform/windows/testing/engine_embedder_api_modifier.h"
#include "gtest/gtest.h"

#include <iostream>

namespace flutter {
namespace testing {

Expand All @@ -33,6 +35,8 @@ std::unique_ptr<FlutterWindowsEngine> GetTestEngine() {
TEST(FlutterWindowsEngine, RunDoesExpectedInitialization) {
std::unique_ptr<FlutterWindowsEngine> engine = GetTestEngine();
EngineEmbedderApiModifier modifier(engine.get());
std::cout << "Running RunDoesExpectedInitialization with " << std::hex
<< (intptr_t)(engine.get()) << std::endl;

// The engine should be run with expected configuration values.
bool run_called = false;
Expand All @@ -41,6 +45,8 @@ TEST(FlutterWindowsEngine, RunDoesExpectedInitialization) {
size_t version, const FlutterRendererConfig* config,
const FlutterProjectArgs* args, void* user_data,
FLUTTER_API_SYMBOL(FlutterEngine) * engine_out) {
std::cout << "Run called with " << std::hex << (intptr_t)user_data
<< std::endl;
run_called = true;
*engine_out = reinterpret_cast<FLUTTER_API_SYMBOL(FlutterEngine)>(1);

Expand Down Expand Up @@ -98,6 +104,8 @@ TEST(FlutterWindowsEngine, RunDoesExpectedInitialization) {
TEST(FlutterWindowsEngine, SendPlatformMessageWithoutResponse) {
std::unique_ptr<FlutterWindowsEngine> engine = GetTestEngine();
EngineEmbedderApiModifier modifier(engine.get());
std::cout << "Running SendPlatformMessageWithoutResponse with " << std::hex
<< (intptr_t)(engine.get()) << std::endl;

const char* channel = "test";
const std::vector<uint8_t> test_message = {1, 2, 3, 4};
Expand All @@ -124,6 +132,8 @@ TEST(FlutterWindowsEngine, SendPlatformMessageWithoutResponse) {
TEST(FlutterWindowsEngine, SendPlatformMessageWithResponse) {
std::unique_ptr<FlutterWindowsEngine> engine = GetTestEngine();
EngineEmbedderApiModifier modifier(engine.get());
std::cout << "Running SendPlatformMessageWithResponse with " << std::hex
<< (intptr_t)(engine.get()) << std::endl;

const char* channel = "test";
const std::vector<uint8_t> test_message = {1, 2, 3, 4};
Expand Down