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

add windows embedding test#12423

Merged
chunhtai merged 1 commit into
flutter-team-archive:masterfrom
chunhtai:issues/41004
Oct 3, 2019
Merged

add windows embedding test#12423
chunhtai merged 1 commit into
flutter-team-archive:masterfrom
chunhtai:issues/41004

Conversation

@chunhtai

Copy link
Copy Markdown
Contributor

Comment thread BUILD.gn
Comment thread BUILD.gn
Comment thread shell/platform/windows/BUILD.gn Outdated
Comment thread shell/platform/windows/BUILD.gn Outdated
Comment thread shell/platform/windows/win32_window_unittests.cc
Comment thread shell/platform/windows/testing/win32_flutter_window_test.h

namespace flutter {
namespace testing {
void Win32FlutterWindowTest::OnFontChange() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OnFontChanged or OnFontsDidChange sound more descriptive.

@chunhtai chunhtai Sep 26, 2019

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was following the pattern in https://github.com/flutter/engine/blob/d8d0d3f10477c94b4cca477aa6adbd803b5462b2/shell/platform/windows/win32_window.cc#L123
I think most of the pattern is On'message name'. The message for font changes is WM_FONTCHANGE.
If you think this is not a good pattern, i can update all of them

Comment thread shell/platform/windows/win32_window_unittests.cc Outdated
Comment thread shell/platform/windows/win32_window_unittests.cc Outdated
Comment thread shell/platform/windows/win32_window_unittests.cc Outdated
Comment thread shell/platform/windows/testing/win32_flutter_window_test.h Outdated
@chinmaygarde

Copy link
Copy Markdown
Contributor

Also, please amend the commit message to correct the typo.

@chunhtai chunhtai changed the title add wundows embedding test add windows embedding test Sep 26, 2019
Comment thread shell/platform/windows/BUILD.gn Outdated
"win32_flutter_window.h",
"win32_window.cc",
"win32_window.h",
"window_state.h",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this duplicating everything instead of depending on flutter_windows_source?

Comment thread shell/platform/windows/testing/win32_flutter_window_test.h Outdated
Comment thread shell/platform/windows/win32_window_unittests.cc Outdated
@googlebot

Copy link
Copy Markdown

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

1 similar comment
@googlebot

Copy link
Copy Markdown

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@googlebot

Copy link
Copy Markdown

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

1 similar comment
@googlebot

Copy link
Copy Markdown

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

Comment thread .cirrus.yml
ninja -C out/host_debug_unopt
test_host_script: |
cd $ENGINE_PATH/src
python flutter/testing/run_tests.py --type=engine --engine-filter=flutter_windows_unittests,client_wrapper_windows_unittests

@chunhtai chunhtai Sep 27, 2019

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some of the unit tests fail on windows platform, I think only run relevant tests should be enough

@chunhtai chunhtai added the Work in progress (WIP) Not ready (yet) for review! label Sep 27, 2019
@chunhtai
chunhtai force-pushed the issues/41004 branch 2 times, most recently from f1d95dd to 9f17c44 Compare September 27, 2019 21:48
Comment thread .cirrus.yml
gce_instance:
image_project: flutter-cirrus
image_name: flutter-engine-windows-server-2016-core
image_name: flutter-engine-windows-server-2016

@chunhtai chunhtai Oct 2, 2019

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The windows unit test requires opengl to run, I updated it to use a gui version of image

@chunhtai chunhtai removed the Work in progress (WIP) Not ready (yet) for review! label Oct 3, 2019
@chunhtai

chunhtai commented Oct 3, 2019

Copy link
Copy Markdown
Contributor Author

This is ready for re review

@chunhtai
chunhtai merged commit daf1eb9 into flutter-team-archive:master Oct 3, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Oct 3, 2019
engine-flutter-autoroll added a commit to flutter/flutter that referenced this pull request Oct 4, 2019
[email protected]:flutter/engine.git/compare/7d67e275ff82...8aa4732

git log 7d67e27..8aa4732 --no-merges --oneline
2019-10-03 [email protected] Fix Metal builds. (flutter-team-archive/engine#12777)
2019-10-03 [email protected] Revert "Manage resource and onscreen contexts using separate IOSGLContext objects (#12277)" (flutter-team-archive/engine#12773)
2019-10-03 [email protected] Roll src/third_party/dart afac6a3714..07a63a17a4 (6 commits)
2019-10-03 [email protected] roll buildroot to 01e9235 (flutter-team-archive/engine#12771)
2019-10-03 [email protected] Create a package-able incremental compiler (flutter-team-archive/engine#12681)
2019-10-03 [email protected] add windows embedding test (flutter-team-archive/engine#12423)
2019-10-03 [email protected] Roll fuchsia/sdk/core/mac-amd64 from g-PD1... to wYLiQ... (flutter-team-archive/engine#12770)


If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC [email protected] on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
Inconnu08 pushed a commit to Inconnu08/flutter that referenced this pull request Nov 26, 2019
[email protected]:flutter/engine.git/compare/7d67e275ff82...8aa4732

git log 7d67e27..8aa4732 --no-merges --oneline
2019-10-03 [email protected] Fix Metal builds. (flutter-team-archive/engine#12777)
2019-10-03 [email protected] Revert "Manage resource and onscreen contexts using separate IOSGLContext objects (flutter#12277)" (flutter-team-archive/engine#12773)
2019-10-03 [email protected] Roll src/third_party/dart afac6a3714..07a63a17a4 (6 commits)
2019-10-03 [email protected] roll buildroot to 01e9235 (flutter-team-archive/engine#12771)
2019-10-03 [email protected] Create a package-able incremental compiler (flutter-team-archive/engine#12681)
2019-10-03 [email protected] add windows embedding test (flutter-team-archive/engine#12423)
2019-10-03 [email protected] Roll fuchsia/sdk/core/mac-amd64 from g-PD1... to wYLiQ... (flutter-team-archive/engine#12770)


If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC [email protected] on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Development

Successfully merging this pull request may close these issues.

4 participants