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

Issue 686053005: Add GetURL variant to EmbeddedTestServer with hostname parameter. (Closed)

Created:
6 years, 1 month ago by nasko
Modified:
6 years, 1 month ago
Reviewers:
mtomasz
CC:
chromium-reviews, cbentzel+watch_chromium.org, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add GetURL variant to EmbeddedTestServer with hostname parameter. When writing tests for cross-process navigation, we need to navigate to different hostnames. Doing this in tests requires lots of boilerplate code, which makes the test code harder to read and unlcear when we have cross-process navigation and when not. Adding this method will allow us to avoid the boilerplate code by putting it in a single method and make tests more readable. As we are ramping up work on out-of-process iframes, such tests will become a lot more common than in the past. BUG=418236 Committed: https://crrev.com/a40f1b0f139724ca6df8be1ee34ad12b82097fda Cr-Commit-Position: refs/heads/master@{#302012}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fixing nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -0 lines) Patch
M net/test/embedded_test_server/embedded_test_server.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M net/test/embedded_test_server/embedded_test_server.cc View 1 1 chunk +9 lines, -0 lines 0 comments Download
M net/test/embedded_test_server/embedded_test_server_unittest.cc View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
nasko
Hi Tomasz, Can you please review this CL for me? We found that the cross-site ...
6 years, 1 month ago (2014-10-29 21:52:57 UTC) #2
mtomasz
lgtm with 2 nits https://codereview.chromium.org/686053005/diff/1/net/test/embedded_test_server/embedded_test_server.h File net/test/embedded_test_server/embedded_test_server.h (right): https://codereview.chromium.org/686053005/diff/1/net/test/embedded_test_server/embedded_test_server.h#newcode133 net/test/embedded_test_server/embedded_test_server.h:133: // |hostname| for the URL ...
6 years, 1 month ago (2014-10-30 00:25:30 UTC) #3
nasko
https://codereview.chromium.org/686053005/diff/1/net/test/embedded_test_server/embedded_test_server.h File net/test/embedded_test_server/embedded_test_server.h (right): https://codereview.chromium.org/686053005/diff/1/net/test/embedded_test_server/embedded_test_server.h#newcode133 net/test/embedded_test_server/embedded_test_server.h:133: // |hostname| for the URL instead of 127.0.0.1. On ...
6 years, 1 month ago (2014-10-30 00:45:11 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/686053005/20001
6 years, 1 month ago (2014-10-30 00:46:28 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years, 1 month ago (2014-10-30 01:38:48 UTC) #7
commit-bot: I haz the power
6 years, 1 month ago (2014-10-30 01:39:21 UTC) #8
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a40f1b0f139724ca6df8be1ee34ad12b82097fda
Cr-Commit-Position: refs/heads/master@{#302012}

Powered by Google App Engine
This is Rietveld 408576698