Benign repos Download

fl_window_state_monitor_test.cc

imports flutter/shell/platform/linux/fl_binary_messenger_private.himports flutter/shell/platform/linux/fl_window_state_monitor.h
SHA-256dc70b7e176951644d2398dde97b078d5bb6fb7df29937bf419c52c3e350b21db

Evidence

imports flutter/shell/platform/linux/fl_binary_messenger_private.h lines 1–14
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "flutter/shell/platform/linux/fl_window_state_monitor.h"
6#include "flutter/shell/platform/linux/fl_binary_messenger_private.h"
7#include "flutter/shell/platform/linux/public/flutter_linux/fl_string_codec.h"
8#include "flutter/shell/platform/linux/testing/fl_mock_binary_messenger.h"
9#include "flutter/shell/platform/linux/testing/mock_gtk.h"
10
11#include "gtest/gtest.h"
12
13TEST(FlWindowStateMonitorTest, GainFocus) {
14 g_autoptr(FlMockBinaryMessenger) messenger = fl_mock …
C/C++ unit-test EXPECT_TRUE marker lines 42–49
42:12… emit_by_name(window, "window-state-event", &event, &handled);
43 EXPECT_TRUE(called);
44
45 fl_binary_messenger_shutdown(FL_BINARY_MESSENGER(messenger));
⋯4 lines

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.