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

Issue 2940953003: Consolidated all CWVWebView test helpers inside web_view_test_util file. (Closed)

Created:
3 years, 6 months ago by Eugene But (OOO till 7-30)
Modified:
3 years, 6 months ago
CC:
chromium-reviews, Eugene But (OOO till 7-30), ios-reviews+web_chromium.org, ios-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Consolidated all CWVWebView test helpers inside web_view_test_util file. Notable changes: - LoadUrl was moved from ChromeWebViewTest to web_view_test_util (this way API can be used in EG, integration and unit tests) - LoadUrl returns bool and forces caller to use result (this way API can be used in EG tests as well, which should not use ASSERT). - TapChromeWebViewElementWithId was renamed to TapWebViewElementWithId just for consistency - TapWebViewElementWithId function forces caller to use result (this way tests can assert in appropriate way) - WaitForWebViewLoadCompletionOrTimeout returns bool and forces caller to use result (this way API can be used in EG tests as well, which should not use ASSERT) - WaitForPageLoadCompletion renamed to WaitForWebViewLoadCompletionOrTimeout just for consistency Currently web_view_test_util has 6 functions and will be split if it grows to larger size. BUG=None Review-Url: https://codereview.chromium.org/2940953003 Cr-Commit-Position: refs/heads/master@{#479972} Committed: https://chromium.googlesource.com/chromium/src/+/e4ccee5a9fc9ac79623cc389f72ebbfdc04de10e

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressed review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -48 lines) Patch
M ios/web_view/test/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M ios/web_view/test/chrome_web_view_kvo_inttest.mm View 4 chunks +20 lines, -20 lines 0 comments Download
M ios/web_view/test/chrome_web_view_restorable_state_inttest.mm View 1 chunk +2 lines, -2 lines 0 comments Download
M ios/web_view/test/chrome_web_view_test.h View 1 chunk +0 lines, -7 lines 0 comments Download
M ios/web_view/test/chrome_web_view_test.mm View 1 2 chunks +0 lines, -15 lines 0 comments Download
M ios/web_view/test/web_view_test_util.h View 2 chunks +15 lines, -3 lines 0 comments Download
M ios/web_view/test/web_view_test_util.mm View 2 chunks +13 lines, -1 line 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 23 (16 generated)
Eugene But (OOO till 7-30)
PTAL
3 years, 6 months ago (2017-06-15 02:25:59 UTC) #4
Hiroshi Ichikawa
lgtm
3 years, 6 months ago (2017-06-15 04:07:19 UTC) #9
michaeldo
On 2017/06/15 02:25:59, Eugene But wrote: > PTAL In description, please s/CRWWebView/CWVWebView.
3 years, 6 months ago (2017-06-15 15:34:02 UTC) #12
michaeldo
LGTM! Thank you for test cleanup. Also in description please replace 3 occurrences of "forces ...
3 years, 6 months ago (2017-06-15 15:43:08 UTC) #13
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2940953003/diff/1/ios/web_view/test/chrome_web_view_test.mm File ios/web_view/test/chrome_web_view_test.mm (right): https://codereview.chromium.org/2940953003/diff/1/ios/web_view/test/chrome_web_view_test.mm#newcode13 ios/web_view/test/chrome_web_view_test.mm:13: #import "ios/testing/wait_util.h" On 2017/06/15 15:43:08, michaeldo wrote: > Remove ...
3 years, 6 months ago (2017-06-16 01:52:23 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2940953003/20001
3 years, 6 months ago (2017-06-16 05:13:03 UTC) #20
commit-bot: I haz the power
3 years, 6 months ago (2017-06-16 06:54:12 UTC) #23
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/e4ccee5a9fc9ac79623cc389f72e...

Powered by Google App Engine
This is Rietveld 408576698