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

Issue 1929723002: [Blimp] Adds blimp engine browser test framework and LoadUrl test. (Closed)

Created:
4 years, 7 months ago by haibinlu
Modified:
4 years, 7 months ago
CC:
chromium-reviews, anandc+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, nyquist+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, dtrainor+watch-blimp_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Blimp] Adds blimp engine browser test framework and LoadUrl test. It uses a headless Client (client_session with all features and mock feature delegates) to work with a full Engine listening on a local tcp port. It expects certain messages received via these mock delegates when it sends messages to Engine. other changes: 1. consolidate client's mock feature delegates with existing unit tests. 2. pull common engine command line configs into blimp::engine::SetUpCommandLine. BUG=599184 Committed: https://crrev.com/d4f2c05f5d5d332f440d4ba46156a35228f2ed0c Cr-Commit-Position: refs/heads/master@{#391974}

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 8

Patch Set 3 : addresses comments and rebases #

Total comments: 53

Patch Set 4 : #

Total comments: 6

Patch Set 5 : #

Total comments: 6

Patch Set 6 : Fix listening port allocation issue #

Total comments: 7

Patch Set 7 : Addresses mmenke's comments. Client uses assignment directly without reading commandline. #

Total comments: 4

Patch Set 8 : rebase #

Patch Set 9 : update gn and deps #

Total comments: 21

Patch Set 10 : address Kevin's comments #

Total comments: 6

Patch Set 11 : #

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+827 lines, -89 lines) Patch
M blimp/BUILD.gn View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M blimp/client/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 10 chunks +95 lines, -21 lines 0 comments Download
M blimp/client/app/android/toolbar.h View 1 chunk +1 line, -1 line 0 comments Download
M blimp/client/app/android/web_input_box.h View 1 chunk +1 line, -1 line 0 comments Download
M blimp/client/app/linux/blimp_client_session_linux.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M blimp/client/feature/ime_feature.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M blimp/client/feature/ime_feature.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
A blimp/client/feature/mock_ime_feature_delegate.h View 1 2 3 1 chunk +29 lines, -0 lines 0 comments Download
A blimp/client/feature/mock_ime_feature_delegate.cc View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download
A blimp/client/feature/mock_navigation_feature_delegate.h View 1 2 3 1 chunk +35 lines, -0 lines 0 comments Download
A blimp/client/feature/mock_navigation_feature_delegate.cc View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download
A blimp/client/feature/mock_render_widget_feature_delegate.h View 1 2 3 1 chunk +37 lines, -0 lines 0 comments Download
A blimp/client/feature/mock_render_widget_feature_delegate.cc View 1 2 3 1 chunk +21 lines, -0 lines 0 comments Download
M blimp/client/feature/navigation_feature.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M blimp/client/feature/navigation_feature_unittest.cc View 1 2 3 2 chunks +1 line, -11 lines 0 comments Download
M blimp/client/feature/render_widget_feature.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M blimp/client/feature/render_widget_feature_unittest.cc View 1 2 3 3 chunks +5 lines, -31 lines 0 comments Download
A blimp/client/session/test_client_session.h View 1 2 3 1 chunk +25 lines, -0 lines 0 comments Download
A blimp/client/session/test_client_session.cc View 1 2 3 1 chunk +20 lines, -0 lines 0 comments Download
M blimp/engine/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +19 lines, -0 lines 0 comments Download
M blimp/engine/DEPS View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M blimp/engine/app/blimp_browser_main_parts.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M blimp/engine/app/blimp_browser_main_parts.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M blimp/engine/app/blimp_content_browser_client.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M blimp/engine/app/blimp_content_main_delegate.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M blimp/engine/app/blimp_engine_config.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M blimp/engine/app/blimp_engine_config.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +17 lines, -0 lines 0 comments Download
M blimp/engine/app/blimp_main.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -13 lines 0 comments Download
A blimp/engine/app/test_content_main_delegate.h View 1 2 3 4 5 6 7 8 9 1 chunk +30 lines, -0 lines 0 comments Download
A blimp/engine/app/test_content_main_delegate.cc View 1 2 3 4 5 6 7 8 9 1 chunk +29 lines, -0 lines 0 comments Download
M blimp/engine/session/blimp_engine_session.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -0 lines 0 comments Download
M blimp/engine/session/blimp_engine_session.cc View 1 2 3 4 5 5 chunks +19 lines, -5 lines 0 comments Download
M blimp/net/tcp_engine_transport.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M blimp/net/tcp_engine_transport.cc View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M blimp/net/tcp_transport_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
A blimp/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +40 lines, -0 lines 0 comments Download
A blimp/test/DEPS View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -0 lines 0 comments Download
A blimp/test/browser_tests/blimp_browser_test.h View 1 2 3 4 5 6 7 8 9 1 chunk +68 lines, -0 lines 0 comments Download
A blimp/test/browser_tests/blimp_browser_test.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +121 lines, -0 lines 0 comments Download
A blimp/test/browser_tests/blimp_test_launcher.cc View 1 2 3 4 5 6 7 8 9 1 chunk +49 lines, -0 lines 0 comments Download
A blimp/test/browser_tests/engine_browsertest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +82 lines, -0 lines 0 comments Download
A blimp/test/data/hello.html View 1 chunk +2 lines, -0 lines 0 comments Download
A blimp/test/data/test_client_token View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 66 (25 generated)
haibinlu
4 years, 7 months ago (2016-04-27 22:36:03 UTC) #2
haibinlu
4 years, 7 months ago (2016-04-27 22:40:09 UTC) #4
nyquist
https://codereview.chromium.org/1929723002/diff/20001/blimp/client/BUILD.gn File blimp/client/BUILD.gn (right): https://codereview.chromium.org/1929723002/diff/20001/blimp/client/BUILD.gn#newcode45 blimp/client/BUILD.gn:45: source_set("blimp_client") { Just "client" nowadays :-) Also, with that ...
4 years, 7 months ago (2016-04-29 21:30:54 UTC) #5
haibinlu
PTAL https://codereview.chromium.org/1929723002/diff/20001/blimp/client/BUILD.gn File blimp/client/BUILD.gn (right): https://codereview.chromium.org/1929723002/diff/20001/blimp/client/BUILD.gn#newcode45 blimp/client/BUILD.gn:45: source_set("blimp_client") { On 2016/04/29 21:30:54, nyquist wrote: > ...
4 years, 7 months ago (2016-04-29 22:43:13 UTC) #6
Brian Goldman
https://codereview.chromium.org/1929723002/diff/40001/blimp/test/BUILD.gn File blimp/test/BUILD.gn (right): https://codereview.chromium.org/1929723002/diff/40001/blimp/test/BUILD.gn#newcode20 blimp/test/BUILD.gn:20: defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] For my edification: what ...
4 years, 7 months ago (2016-05-02 16:48:58 UTC) #7
haibinlu
PTAL https://codereview.chromium.org/1929723002/diff/40001/blimp/test/BUILD.gn File blimp/test/BUILD.gn (right): https://codereview.chromium.org/1929723002/diff/40001/blimp/test/BUILD.gn#newcode20 blimp/test/BUILD.gn:20: defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] On 2016/05/02 16:48:58, ...
4 years, 7 months ago (2016-05-02 18:36:27 UTC) #8
nyquist
lgtm
4 years, 7 months ago (2016-05-02 19:00:41 UTC) #9
Brian Goldman
lgtm
4 years, 7 months ago (2016-05-02 19:02:20 UTC) #10
haibinlu
danakj@, pkasting@, sievers@, Could I have your owners' review of blimp/test/DEPS? Thx!
4 years, 7 months ago (2016-05-02 19:03:56 UTC) #12
Kevin M
Adding myself to reviewers list, since I'm back :)
4 years, 7 months ago (2016-05-02 19:05:42 UTC) #15
danakj
deps lgtm
4 years, 7 months ago (2016-05-02 19:58:26 UTC) #16
Kevin M
The scope of this CL is really broad - it touches a lot of files. ...
4 years, 7 months ago (2016-05-02 21:32:40 UTC) #17
Peter Kasting
On 2016/05/02 19:03:56, haibinlu wrote: > danakj@, pkasting@, sievers@, Could I have your owners' review ...
4 years, 7 months ago (2016-05-03 00:51:07 UTC) #18
haibinlu
Kevin, PTAL https://codereview.chromium.org/1929723002/diff/40001/blimp/client/BUILD.gn File blimp/client/BUILD.gn (right): https://codereview.chromium.org/1929723002/diff/40001/blimp/client/BUILD.gn#newcode26 blimp/client/BUILD.gn:26: ":feature", On 2016/05/02 21:32:39, Kevin M wrote: ...
4 years, 7 months ago (2016-05-03 19:32:44 UTC) #20
haibinlu
pkasting@, you are the owner of ui/native_theme. sorry, I forgot to mention change to blimp/engine/DEPS. ...
4 years, 7 months ago (2016-05-03 20:23:01 UTC) #21
Kevin M
https://codereview.chromium.org/1929723002/diff/40001/blimp/client/BUILD.gn File blimp/client/BUILD.gn (right): https://codereview.chromium.org/1929723002/diff/40001/blimp/client/BUILD.gn#newcode26 blimp/client/BUILD.gn:26: ":feature", On 2016/05/03 19:32:42, haibinlu wrote: > On 2016/05/02 ...
4 years, 7 months ago (2016-05-03 20:29:34 UTC) #22
Peter Kasting
DEPS change LGTM
4 years, 7 months ago (2016-05-03 20:41:32 UTC) #23
haibinlu
mmenke@, could I have your owner's review of blimp/test/DEPS? Thanks! https://codereview.chromium.org/1929723002/diff/40001/blimp/client/BUILD.gn File blimp/client/BUILD.gn (right): https://codereview.chromium.org/1929723002/diff/40001/blimp/client/BUILD.gn#newcode159 ...
4 years, 7 months ago (2016-05-03 20:51:59 UTC) #25
Kevin M
lgtm
4 years, 7 months ago (2016-05-03 21:11:59 UTC) #26
mmenke
https://codereview.chromium.org/1929723002/diff/80001/blimp/test/browser_tests/blimp_browser_test.cc File blimp/test/browser_tests/blimp_browser_test.cc (right): https://codereview.chromium.org/1929723002/diff/80001/blimp/test/browser_tests/blimp_browser_test.cc#newcode35 blimp/test/browser_tests/blimp_browser_test.cc:35: net::TCPServerSocket sock(NULL, source); nit: nullptr. Can also just inline ...
4 years, 7 months ago (2016-05-03 21:21:53 UTC) #27
haibinlu
mmenke@, kmarshall@, PTAL. sievers@, could I get your owners' approval for the DEPS file? https://codereview.chromium.org/1929723002/diff/80001/blimp/test/browser_tests/blimp_browser_test.cc ...
4 years, 7 months ago (2016-05-04 21:55:23 UTC) #28
mmenke
LGTM, from a network standpoint, but not sure the new code is threadsafe. https://codereview.chromium.org/1929723002/diff/100001/blimp/test/DEPS File ...
4 years, 7 months ago (2016-05-05 14:45:01 UTC) #29
haibinlu
piman@, could I get your owners approval of the DEPS files updated here? Thanks! https://codereview.chromium.org/1929723002/diff/100001/blimp/test/DEPS ...
4 years, 7 months ago (2016-05-05 17:30:18 UTC) #31
haibinlu
https://codereview.chromium.org/1929723002/diff/100001/blimp/test/DEPS File blimp/test/DEPS (right): https://codereview.chromium.org/1929723002/diff/100001/blimp/test/DEPS#newcode6 blimp/test/DEPS:6: "+net", On 2016/05/05 17:30:18, haibinlu wrote: > On 2016/05/05 ...
4 years, 7 months ago (2016-05-05 18:06:30 UTC) #32
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1929723002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1929723002/120001
4 years, 7 months ago (2016-05-05 18:09:56 UTC) #34
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/132997)
4 years, 7 months ago (2016-05-05 18:19:08 UTC) #36
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1929723002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1929723002/140001
4 years, 7 months ago (2016-05-05 19:40:48 UTC) #38
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/133062) linux_chromium_gn_chromeos_rel on ...
4 years, 7 months ago (2016-05-05 19:47:29 UTC) #40
haibinlu
No longer need ui/gl in DPES. Committing now. Thanks for the reviews!
4 years, 7 months ago (2016-05-05 19:58:57 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1929723002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1929723002/160001
4 years, 7 months ago (2016-05-05 19:59:40 UTC) #45
Kevin M
https://codereview.chromium.org/1929723002/diff/120001/blimp/client/BUILD.gn File blimp/client/BUILD.gn (right): https://codereview.chromium.org/1929723002/diff/120001/blimp/client/BUILD.gn#newcode158 blimp/client/BUILD.gn:158: source_set("feature_test_support") { You can make a "test_support" target that ...
4 years, 7 months ago (2016-05-05 20:28:52 UTC) #47
piman
lgtm for DEPS
4 years, 7 months ago (2016-05-05 20:56:23 UTC) #49
haibinlu
Kevin, PTAL https://codereview.chromium.org/1929723002/diff/120001/blimp/client/BUILD.gn File blimp/client/BUILD.gn (right): https://codereview.chromium.org/1929723002/diff/120001/blimp/client/BUILD.gn#newcode158 blimp/client/BUILD.gn:158: source_set("feature_test_support") { On 2016/05/05 20:28:51, Kevin M ...
4 years, 7 months ago (2016-05-05 22:41:36 UTC) #50
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1929723002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1929723002/180001
4 years, 7 months ago (2016-05-05 22:42:35 UTC) #52
Kevin M
lgtm % nits https://codereview.chromium.org/1929723002/diff/180001/blimp/engine/app/blimp_engine_config.cc File blimp/engine/app/blimp_engine_config.cc (right): https://codereview.chromium.org/1929723002/diff/180001/blimp/engine/app/blimp_engine_config.cc#newcode39 blimp/engine/app/blimp_engine_config.cc:39: void SetUpCommandLine(base::CommandLine* command_line) { SetCommandLineDefaults? https://codereview.chromium.org/1929723002/diff/180001/blimp/engine/session/blimp_engine_session.h ...
4 years, 7 months ago (2016-05-05 22:52:54 UTC) #53
haibinlu
https://codereview.chromium.org/1929723002/diff/180001/blimp/engine/app/blimp_engine_config.cc File blimp/engine/app/blimp_engine_config.cc (right): https://codereview.chromium.org/1929723002/diff/180001/blimp/engine/app/blimp_engine_config.cc#newcode39 blimp/engine/app/blimp_engine_config.cc:39: void SetUpCommandLine(base::CommandLine* command_line) { On 2016/05/05 22:52:54, Kevin M ...
4 years, 7 months ago (2016-05-05 23:39:25 UTC) #56
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1929723002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1929723002/200001
4 years, 7 months ago (2016-05-05 23:39:44 UTC) #57
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/1486) ios-device-gn on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 7 months ago (2016-05-05 23:42:22 UTC) #59
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1929723002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1929723002/220001
4 years, 7 months ago (2016-05-06 00:00:22 UTC) #62
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 7 months ago (2016-05-06 01:03:51 UTC) #64
commit-bot: I haz the power
4 years, 7 months ago (2016-05-06 01:05:51 UTC) #66
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/d4f2c05f5d5d332f440d4ba46156a35228f2ed0c
Cr-Commit-Position: refs/heads/master@{#391974}

Powered by Google App Engine
This is Rietveld 408576698