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

Issue 2730123003: [Presentation API] Add layout test for connection.close() and fix test failures (Closed)

Created:
3 years, 9 months ago by zhaobin
Modified:
3 years, 9 months ago
Reviewers:
mark a. foltz, imcheng
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Presentation API] Add layout test for connection.close() and fix test failures Add layout test. 1-UA connection.close() hits NOTREACHED() in PresentationConnection::didChangeState(). Use PresentationConnection::didClose() instead. BUG=697719 Review-Url: https://codereview.chromium.org/2730123003 Cr-Commit-Position: refs/heads/master@{#455225} Committed: https://chromium.googlesource.com/chromium/src/+/0c08ed56a3e5089b3cc4094e83daae196a6300c4

Patch Set 1 #

Total comments: 9

Patch Set 2 : resolve code review comments from Derek and Mark #

Patch Set 3 : remove unnecessary forward declarations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -21 lines) Patch
M content/renderer/presentation/presentation_connection_proxy.cc View 1 2 chunks +2 lines, -4 lines 0 comments Download
M content/renderer/presentation/presentation_connection_proxy_unittest.cc View 1 1 chunk +4 lines, -8 lines 0 comments Download
M content/renderer/presentation/test_presentation_connection.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/presentation/presentation-controller-close-connection.html View 1 1 chunk +53 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/presentation/presentation-controller-connection-closed-by-receiver.html View 1 1 chunk +48 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/presentation/resources/presentation-receiver-close-connection.html View 1 chunk +45 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/presentation/resources/presentation-service-mock.js View 2 chunks +29 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationConnection.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp View 1 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/modules/presentation/WebPresentationConnection.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (21 generated)
zhaobin
3 years, 9 months ago (2017-03-03 21:40:13 UTC) #2
imcheng
lgtm https://codereview.chromium.org/2730123003/diff/1/third_party/WebKit/LayoutTests/presentation/presentation-controller-close-connection.html File third_party/WebKit/LayoutTests/presentation/presentation-controller-close-connection.html (right): https://codereview.chromium.org/2730123003/diff/1/third_party/WebKit/LayoutTests/presentation/presentation-controller-close-connection.html#newcode23 third_party/WebKit/LayoutTests/presentation/presentation-controller-close-connection.html:23: assert_equals(connection.state, "closed"); Is there a specific reason / ...
3 years, 9 months ago (2017-03-04 00:58:28 UTC) #7
mark a. foltz
lgtm Thank you for adding thorough layout tests. Our layout test coverage is really improving! ...
3 years, 9 months ago (2017-03-06 18:57:55 UTC) #8
zhaobin
https://codereview.chromium.org/2730123003/diff/1/content/renderer/presentation/presentation_connection_proxy.cc File content/renderer/presentation/presentation_connection_proxy.cc (right): https://codereview.chromium.org/2730123003/diff/1/content/renderer/presentation/presentation_connection_proxy.cc#newcode81 content/renderer/presentation/presentation_connection_proxy.cc:81: target_connection_ptr_->DidChangeState( On 2017/03/06 18:57:55, mark a. foltz wrote: > ...
3 years, 9 months ago (2017-03-06 19:52:23 UTC) #10
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/2730123003/40001
3 years, 9 months ago (2017-03-07 20:05:08 UTC) #24
commit-bot: I haz the power
3 years, 9 months ago (2017-03-07 21:20:06 UTC) #27
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/0c08ed56a3e5089b3cc4094e83da...

Powered by Google App Engine
This is Rietveld 408576698