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

Commit 4ddc1c0

Browse files
committed
clang format
1 parent a6ee021 commit 4ddc1c0

File tree

3 files changed

+27
-26
lines changed

3 files changed

+27
-26
lines changed

shell/platform/windows/testing/win32_flutter_window_test.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33

44
namespace flutter {
55
namespace testing {
6-
void Win32FlutterWindowTest::OnFontChange() {
7-
on_font_change_called_ = true;
8-
}
6+
void Win32FlutterWindowTest::OnFontChange() {
7+
on_font_change_called_ = true;
8+
}
99

10-
bool OnFontChangeIsCalled() {
11-
return on_font_change_called_;
12-
}
10+
bool OnFontChangeIsCalled() {
11+
return on_font_change_called_;
12+
}
1313
} // namespace testing
1414
} // namespace flutter

shell/platform/windows/testing/win32_flutter_window_test.h

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,17 @@ namespace flutter {
1010
namespace testing {
1111

1212
class Win32FlutterWindowTest : public Win32FlutterWindow {
13-
public:
14-
Win32FlutterWindowTest(int width, int height) : Win32FlutterWindow(width, height) { };
13+
public:
14+
Win32FlutterWindowTest(int width, int height)
15+
: Win32FlutterWindow(width, height){};
1516

16-
// |Win32Window|
17-
void OnFontChange() override;
17+
// |Win32Window|
18+
void OnFontChange() override;
1819

19-
bool OnFontChangeIsCalled();
20+
bool OnFontChangeIsCalled();
2021

2122
private:
22-
bool on_font_change_called_ = false;
23+
bool on_font_change_called_ = false;
2324
};
2425

2526
} // namespace testing
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
#include "gtest/gtest.h"
2-
#include "flutter/shell/platform/windows/win32_flutter_window.h"
31
#include "flutter/shell/platform/windows/testing/win32_flutter_window_test.h"
2+
#include "flutter/shell/platform/windows/win32_flutter_window.h"
3+
#include "gtest/gtest.h"
44

55
namespace flutter {
66
namespace testing {
77

8-
TEST(Win32FlutterWindowTest, CreateDestroy) {
9-
Win32FlutterWindow window(800, 600);
10-
}
11-
12-
TEST(Win32FlutterWindowTest, CanFontChange) {
13-
Win32FlutterWindowTest window(800, 600);
14-
HWND hwnd = window.GetWindowHandle();
15-
LRESULT result = SendMessage(hwnd, WM_FONTCHANGE, NULL, NULL);
16-
ASSERT_EQ(result, 0);
17-
ASSERT_TRUE(window.OnFontChangeIsCalled());
18-
}
19-
8+
TEST(Win32FlutterWindowTest, CreateDestroy) {
9+
Win32FlutterWindow window(800, 600);
2010
}
11+
12+
TEST(Win32FlutterWindowTest, CanFontChange) {
13+
Win32FlutterWindowTest window(800, 600);
14+
HWND hwnd = window.GetWindowHandle();
15+
LRESULT result = SendMessage(hwnd, WM_FONTCHANGE, NULL, NULL);
16+
ASSERT_EQ(result, 0);
17+
ASSERT_TRUE(window.OnFontChangeIsCalled());
2118
}
19+
20+
} // namespace testing
21+
} // namespace flutter

0 commit comments

Comments
 (0)