Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 336ed86

Browse files
committed
fix clang
1 parent 4ddc1c0 commit 336ed86

File tree

6 files changed

+13
-6
lines changed

6 files changed

+13
-6
lines changed

.cirrus.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,14 @@ task:
109109
cd %ENGINE_PATH%/src
110110
gclient sync
111111
matrix:
112-
- name: build_windows_unopt_debug
112+
- name: build_and_test_windows_unopt_debug
113113
compile_host_script: |
114114
cd %ENGINE_PATH%/src
115115
python flutter/tools/gn --runtime-mode debug --unoptimized
116116
ninja -C out/host_debug_unopt
117+
test_host_script: |
118+
cd $ENGINE_PATH/src
119+
python flutter/testing/run_tests.py --type=engine --engine-filter=flutter_windows_unittests,client_wrapper_windows_unittests
117120
- name: build_windows_opt_debug
118121
compile_host_script: |
119122
cd %ENGINE_PATH%/src

ci/licenses_golden/licenses_flutter

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,6 +1025,7 @@ FILE: ../../../flutter/shell/platform/windows/win32_flutter_window.cc
10251025
FILE: ../../../flutter/shell/platform/windows/win32_flutter_window.h
10261026
FILE: ../../../flutter/shell/platform/windows/win32_window.cc
10271027
FILE: ../../../flutter/shell/platform/windows/win32_window.h
1028+
FILE: ../../../flutter/shell/platform/windows/win32_window_unittests.cc
10281029
FILE: ../../../flutter/shell/platform/windows/window_state.h
10291030
FILE: ../../../flutter/shell/version/version.cc
10301031
FILE: ../../../flutter/shell/version/version.h

shell/platform/windows/testing/win32_flutter_window_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ void Win32FlutterWindowTest::OnFontChange() {
77
on_font_change_called_ = true;
88
}
99

10-
bool OnFontChangeIsCalled() {
10+
bool Win32FlutterWindowTest::OnFontChangeWasCalled() {
1111
return on_font_change_called_;
1212
}
1313
} // namespace testing

shell/platform/windows/testing/win32_flutter_window_test.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Win32FlutterWindowTest : public Win32FlutterWindow {
1717
// |Win32Window|
1818
void OnFontChange() override;
1919

20-
bool OnFontChangeIsCalled();
20+
bool OnFontChangeWasCalled();
2121

2222
private:
2323
bool on_font_change_called_ = false;

shell/platform/windows/win32_window_unittests.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
#include "flutter/shell/platform/windows/testing/win32_flutter_window_test.h"
2-
#include "flutter/shell/platform/windows/win32_flutter_window.h"
32
#include "gtest/gtest.h"
43

54
namespace flutter {
65
namespace testing {
76

87
TEST(Win32FlutterWindowTest, CreateDestroy) {
9-
Win32FlutterWindow window(800, 600);
8+
Win32FlutterWindowTest window(800, 600);
109
}
1110

1211
TEST(Win32FlutterWindowTest, CanFontChange) {
1312
Win32FlutterWindowTest window(800, 600);
1413
HWND hwnd = window.GetWindowHandle();
1514
LRESULT result = SendMessage(hwnd, WM_FONTCHANGE, NULL, NULL);
1615
ASSERT_EQ(result, 0);
17-
ASSERT_TRUE(window.OnFontChangeIsCalled());
16+
ASSERT_TRUE(window.OnFontChangeWasCalled());
1817
}
1918

2019
} // namespace testing

testing/run_tests.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ def RunCCTests(build_dir, filter):
8383
# https://github.com/flutter/flutter/issues/36294
8484
if not IsWindows():
8585
RunEngineExecutable(build_dir, 'embedder_unittests', filter, shuffle_flags)
86+
else:
87+
RunEngineExecutable(build_dir, 'flutter_windows_unittests', filter, shuffle_flags)
88+
89+
RunEngineExecutable(build_dir, 'client_wrapper_windows_unittests', filter, shuffle_flags)
8690

8791
flow_flags = ['--gtest_filter=-PerformanceOverlayLayer.Gold']
8892
if IsLinux():

0 commit comments

Comments
 (0)