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

Issue 1378273003: Decouple CookieMonsterTest from CookieStoreTest. (Closed)

Created:
5 years, 2 months ago by cmumford
Modified:
5 years, 2 months ago
Reviewers:
Mike West
CC:
cbentzel+watch_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Decouple CookieMonsterTest from CookieStoreTest. Prior implementation had CookieMonsterTest hard-coded to be aware of specific parts (domain, etc.) of CookieStoreTest's test URL's. This change switches CookieStoreTest's URL's from GURL to a new URLHelper which has methods for these tests so that the desired parts of the URL's from CookieStoreTest can be extracted, or new variants can be created. Committed: https://crrev.com/8688a8f8c4f3e2010d5a6ecf7cc928121f7a4340 Cr-Commit-Position: refs/heads/master@{#354304}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Moved (and renamed) URLHelper into own class/file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+611 lines, -449 lines) Patch
M net/cookies/cookie_monster_unittest.cc View 62 chunks +339 lines, -274 lines 0 comments Download
M net/cookies/cookie_store_test_helpers.h View 1 2 chunks +20 lines, -1 line 0 comments Download
M net/cookies/cookie_store_test_helpers.cc View 1 2 chunks +41 lines, -0 lines 0 comments Download
M net/cookies/cookie_store_unittest.h View 1 17 chunks +211 lines, -174 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
cmumford
A reviewer in another CL had commented on the unnecessary coupling between these two classes. ...
5 years, 2 months ago (2015-10-06 18:00:53 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1378273003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1378273003/1
5 years, 2 months ago (2015-10-09 15:05:21 UTC) #4
Mike West
Conceptually, I think this is fine, but the URLHelper implementation need a little bit of ...
5 years, 2 months ago (2015-10-09 15:08:16 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-09 15:43:55 UTC) #7
cmumford
Because URLHelper was nested inside a templated class I decided it was best to move ...
5 years, 2 months ago (2015-10-09 21:21:01 UTC) #8
Mike West
Sorry, lost track of this. Patch #2 LGTM.
5 years, 2 months ago (2015-10-15 09:26:50 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1378273003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1378273003/20001
5 years, 2 months ago (2015-10-15 17:09:23 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 2 months ago (2015-10-15 18:08:16 UTC) #12
commit-bot: I haz the power
5 years, 2 months ago (2015-10-15 18:09:29 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/8688a8f8c4f3e2010d5a6ecf7cc928121f7a4340
Cr-Commit-Position: refs/heads/master@{#354304}

Powered by Google App Engine
This is Rietveld 408576698