Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(359)

Issue 1480303002: Implement a basic PPAPI plugin for Blink layout tests. (Closed)

Created:
5 years ago by dcheng
Modified:
5 years ago
CC:
blink-reviews, chromium-reviews, darin-cc_chromium.org, jam, jochen+watch_chromium.org, mkwst+moarreviews-shell_chromium.org, mlamouri+watch-content_chromium.org, Peter Beverloo
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement a basic PPAPI plugin for Blink layout tests. The plugin is automatically registered in layout tests using the MIME type application/x-blink-test-plugin. Several layout tests have also been migrated to use the new plugin. Implementing the plugin also revealed a bug in PPAPI and the layout test runner: - Retrieving the key code via PPAPI always returned KeyA on Mac. - The layout test runner explicitly set DYLD_FRAMEWORK_PATH, making it hard to load the plugin from the right location. BUG=474535 Committed: https://crrev.com/0d93c1a79b3c4cc3b633e9f6e1fbae6cf1611f64 Cr-Commit-Position: refs/heads/master@{#362872}

Patch Set 1 #

Patch Set 2 : Stick with the original program #

Patch Set 3 : Works on Mac #

Patch Set 4 : Trim comment #

Total comments: 4

Patch Set 5 : Debugging by combat #

Patch Set 6 : printf, an elegant tool for a more civilized age #

Total comments: 5

Patch Set 7 : Fix Mac by removing (hopefully) superfluous DYLD_FRAMEWORK_PATH #

Total comments: 3

Patch Set 8 : Address codereview comment and try to fix Mac #

Total comments: 1

Patch Set 9 : Change tests to use startAfterLoadAndFinish helper when possible. #

Total comments: 2

Patch Set 10 : Non working #

Patch Set 11 : Give up #

Patch Set 12 : Add comments #

Patch Set 13 : MOAR COMMENTS #

Patch Set 14 : Fix Android after https://codereview.chromium.org/1478633002 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+391 lines, -186 lines) Patch
M content/content_shell.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +9 lines, -0 lines 0 comments Download
M content/public/test/ppapi_test_utils.h View 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/test/ppapi_test_utils.cc View 5 6 3 chunks +34 lines, -5 lines 0 comments Download
M content/renderer/pepper/event_conversion.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -6 lines 0 comments Download
M content/shell/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -1 line 0 comments Download
M content/shell/app/shell_main_delegate.cc View 5 6 5 chunks +12 lines, -4 lines 0 comments Download
M content/shell/browser/shell_plugin_service_filter.cc View 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +12 lines, -0 lines 0 comments Download
M ppapi/ppapi_tests.gypi View 1 chunk +19 lines, -0 lines 0 comments Download
A ppapi/tests/blink_test_plugin.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +179 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/replaced/invalid-object-with-fallback.html View 2 chunks +9 lines, -9 lines 0 comments Download
D third_party/WebKit/LayoutTests/platform/linux/plugins/keyboard-events-expected.txt View 2 1 chunk +0 lines, -11 lines 0 comments Download
D third_party/WebKit/LayoutTests/platform/linux/plugins/mouse-events-expected.txt View 2 1 chunk +0 lines, -7 lines 0 comments Download
D third_party/WebKit/LayoutTests/platform/linux/plugins/mouse-events-fixedpos-expected.txt View 2 1 chunk +0 lines, -7 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/plugins/webview-plugin-type-change-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
D third_party/WebKit/LayoutTests/platform/mac/plugins/keyboard-events-expected.txt View 1 2 1 chunk +0 lines, -11 lines 0 comments Download
D third_party/WebKit/LayoutTests/platform/mac/plugins/mouse-events-expected.txt View 1 2 1 chunk +0 lines, -7 lines 0 comments Download
D third_party/WebKit/LayoutTests/platform/mac/plugins/mouse-events-fixedpos-expected.txt View 1 2 1 chunk +0 lines, -7 lines 0 comments Download
D third_party/WebKit/LayoutTests/platform/win/plugins/keyboard-events-expected.txt View 1 2 1 chunk +0 lines, -11 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/plugins/mouse-click-plugin-clears-selection-expected.txt View 2 chunks +6 lines, -3 lines 0 comments Download
D third_party/WebKit/LayoutTests/platform/win/plugins/mouse-events-expected.txt View 1 2 1 chunk +0 lines, -7 lines 0 comments Download
D third_party/WebKit/LayoutTests/platform/win/plugins/mouse-events-fixedpos-expected.txt View 1 2 1 chunk +0 lines, -7 lines 0 comments Download
M third_party/WebKit/LayoutTests/plugins/keyboard-events.html View 1 2 3 4 5 6 7 8 1 chunk +22 lines, -22 lines 0 comments Download
A third_party/WebKit/LayoutTests/plugins/keyboard-events-expected.txt View 2 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/plugins/mouse-click-plugin-clears-selection.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/plugins/mouse-events.html View 1 2 3 4 5 6 7 8 1 chunk +22 lines, -22 lines 0 comments Download
A third_party/WebKit/LayoutTests/plugins/mouse-events-expected.txt View 2 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/plugins/mouse-events-fixedpos.html View 1 2 3 4 5 6 7 8 3 chunks +18 lines, -24 lines 0 comments Download
A third_party/WebKit/LayoutTests/plugins/mouse-events-fixedpos-expected.txt View 2 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/plugins/webview-plugin-type-change.html View 1 chunk +8 lines, -11 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/base.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 38 (16 generated)
dcheng
+avi for content, +piman for ppapi, +esprehn for third_party/WebKit https://codereview.chromium.org/1480303002/diff/60001/content/content_shell.gypi File content/content_shell.gypi (right): https://codereview.chromium.org/1480303002/diff/60001/content/content_shell.gypi#newcode739 content/content_shell.gypi:739: ...
5 years ago (2015-12-01 01:03:30 UTC) #4
piman
lgtm
5 years ago (2015-12-01 01:13:27 UTC) #5
Avi (use Gerrit)
https://codereview.chromium.org/1480303002/diff/100001/content/public/test/ppapi_test_utils.cc File content/public/test/ppapi_test_utils.cc (right): https://codereview.chromium.org/1480303002/diff/100001/content/public/test/ppapi_test_utils.cc#newcode25 content/public/test/ppapi_test_utils.cc:25: printf("Couldn't look up module path!\n"); Why doesn't LOG(ERROR) or ...
5 years ago (2015-12-01 15:01:14 UTC) #6
dcheng
https://codereview.chromium.org/1480303002/diff/100001/content/public/test/ppapi_test_utils.cc File content/public/test/ppapi_test_utils.cc (right): https://codereview.chromium.org/1480303002/diff/100001/content/public/test/ppapi_test_utils.cc#newcode25 content/public/test/ppapi_test_utils.cc:25: printf("Couldn't look up module path!\n"); On 2015/12/01 at 15:01:14, ...
5 years ago (2015-12-01 19:52:02 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1480303002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1480303002/120001
5 years ago (2015-12-01 20:26:42 UTC) #9
Avi (use Gerrit)
https://codereview.chromium.org/1480303002/diff/100001/content/public/test/ppapi_test_utils.cc File content/public/test/ppapi_test_utils.cc (right): https://codereview.chromium.org/1480303002/diff/100001/content/public/test/ppapi_test_utils.cc#newcode25 content/public/test/ppapi_test_utils.cc:25: printf("Couldn't look up module path!\n"); On 2015/12/01 19:52:02, dcheng ...
5 years ago (2015-12-01 20:51:55 UTC) #10
dcheng
PTAL. I guess it wasn't clear, but PS 5 and PS 6 were purely debugging ...
5 years ago (2015-12-01 22:08:18 UTC) #12
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/148244)
5 years ago (2015-12-01 22:27:21 UTC) #14
Dirk Pranke
webkitpy lgtm
5 years ago (2015-12-01 22:45:22 UTC) #15
raymes
ppapi/ lgtm https://codereview.chromium.org/1480303002/diff/120001/ppapi/tests/blink_test_plugin.cc File ppapi/tests/blink_test_plugin.cc (right): https://codereview.chromium.org/1480303002/diff/120001/ppapi/tests/blink_test_plugin.cc#newcode72 ppapi/tests/blink_test_plugin.cc:72: void HandleMessage(const pp::Var& message_data) override {} nit: ...
5 years ago (2015-12-01 23:43:42 UTC) #17
dcheng
https://codereview.chromium.org/1480303002/diff/120001/ppapi/tests/blink_test_plugin.cc File ppapi/tests/blink_test_plugin.cc (right): https://codereview.chromium.org/1480303002/diff/120001/ppapi/tests/blink_test_plugin.cc#newcode72 ppapi/tests/blink_test_plugin.cc:72: void HandleMessage(const pp::Var& message_data) override {} On 2015/12/01 at ...
5 years ago (2015-12-01 23:51:17 UTC) #18
piman
lgtm
5 years ago (2015-12-01 23:58:51 UTC) #19
Avi (use Gerrit)
lgtm Oh, OK. Yeah, that's fine.
5 years ago (2015-12-02 00:24:43 UTC) #20
esprehn
lgtm, you're a hero! https://codereview.chromium.org/1480303002/diff/160001/ppapi/tests/blink_test_plugin.cc File ppapi/tests/blink_test_plugin.cc (right): https://codereview.chromium.org/1480303002/diff/160001/ppapi/tests/blink_test_plugin.cc#newcode15 ppapi/tests/blink_test_plugin.cc:15: static void DummyCompletionCallback(void*, int32_t) {} ...
5 years ago (2015-12-02 03:46:53 UTC) #21
dcheng
I also added more comments, because yay, comments. https://codereview.chromium.org/1480303002/diff/160001/ppapi/tests/blink_test_plugin.cc File ppapi/tests/blink_test_plugin.cc (right): https://codereview.chromium.org/1480303002/diff/160001/ppapi/tests/blink_test_plugin.cc#newcode15 ppapi/tests/blink_test_plugin.cc:15: static ...
5 years ago (2015-12-02 22:35:32 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1480303002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1480303002/240001
5 years ago (2015-12-02 22:37:24 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/130305)
5 years ago (2015-12-02 23:17:29 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1480303002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1480303002/240001
5 years ago (2015-12-02 23:19:23 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/130338)
5 years ago (2015-12-02 23:38:23 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1480303002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1480303002/260001
5 years ago (2015-12-02 23:45:44 UTC) #35
commit-bot: I haz the power
Committed patchset #14 (id:260001)
5 years ago (2015-12-03 02:46:51 UTC) #36
commit-bot: I haz the power
5 years ago (2015-12-03 02:47:32 UTC) #38
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/0d93c1a79b3c4cc3b633e9f6e1fbae6cf1611f64
Cr-Commit-Position: refs/heads/master@{#362872}

Powered by Google App Engine
This is Rietveld 408576698