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

Issue 2601973002: [ios] Do not use SetSynchronizedWithSystemStore in tests. (Closed)

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

Description

[ios] Do not use SetSynchronizedWithSystemStore in tests. There are 2 ways how CookieStoreIOS() is created in production code: - Synchronized with NSHTTPCookieStorage and without persistent_store (via CookieStoreIOS::CreateCookieStore factory method). - Not synchronized with NSHTTPCookieStorage and with persistent_store (via CookieStoreIOS::CookieStoreIOS constructor). Updated tests to test these 2 flows using 2 different test fixtures: SynchronizedCookieStoreIOS and NotSynchronizedCookieStoreIOSWithBackend. With this new approach there is no need to call |SetSynchronizedWithSystemStore| method and it can be safely removed in a separate CL as it is not used in production code. Also removed obsolete tests which tested synchronized store with backend: - CookieStoreIOSWithBackend.Synchronizing - CookieStoreIOSWithBackend.FlushOnCookieChanged - CookieStoreIOSWithBackend.ManualFlush BUG=676144 Committed: https://crrev.com/646ec2f38d767ac5ab60d2f443e3558061dbf2a0 Cr-Commit-Position: refs/heads/master@{#441034}

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -118 lines) Patch
M ios/net/cookies/cookie_store_ios_unittest.mm View 19 chunks +86 lines, -118 lines 4 comments Download

Messages

Total messages: 17 (10 generated)
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2601973002/diff/1/ios/net/cookies/cookie_store_ios_unittest.mm File ios/net/cookies/cookie_store_ios_unittest.mm (right): https://codereview.chromium.org/2601973002/diff/1/ios/net/cookies/cookie_store_ios_unittest.mm#newcode576 ios/net/cookies/cookie_store_ios_unittest.mm:576: EXPECT_EQ(1U, cookies.size()); Synchronized CookieStoreIOS works differently if created without ...
3 years, 11 months ago (2016-12-28 19:34:23 UTC) #3
Eugene But (OOO till 7-30)
Mark?
3 years, 11 months ago (2016-12-29 21:53:55 UTC) #8
marq (ping after 24h)
LGTM but see my note about the change in behavior. https://codereview.chromium.org/2601973002/diff/1/ios/net/cookies/cookie_store_ios_unittest.mm File ios/net/cookies/cookie_store_ios_unittest.mm (right): https://codereview.chromium.org/2601973002/diff/1/ios/net/cookies/cookie_store_ios_unittest.mm#newcode576 ...
3 years, 11 months ago (2016-12-30 09:24:38 UTC) #9
Eugene But (OOO till 7-30)
Thank you! Filed crbug.com/677662
3 years, 11 months ago (2016-12-30 16:36:44 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/2601973002/1
3 years, 11 months ago (2016-12-30 16:36:57 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1)
3 years, 11 months ago (2016-12-30 16:40:45 UTC) #15
commit-bot: I haz the power
3 years, 11 months ago (2017-01-02 15:54:37 UTC) #17
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/646ec2f38d767ac5ab60d2f443e3558061dbf2a0
Cr-Commit-Position: refs/heads/master@{#441034}

Powered by Google App Engine
This is Rietveld 408576698