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

Issue 845863002: Add stricter tests for RapporService::LoadSecret (Closed)

Created:
5 years, 11 months ago by Steven Holte
Modified:
5 years, 11 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add stricter tests for RapporService::LoadSecret BUG=448269 Committed: https://crrev.com/2a1a54720a4e78e912200444016a51009196bbf0 Cr-Commit-Position: refs/heads/master@{#311591}

Patch Set 1 #

Patch Set 2 : Tests and Isolation #

Patch Set 3 : Internal namespace #

Total comments: 12

Patch Set 4 : #

Total comments: 4

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+294 lines, -88 lines) Patch
M components/components_tests.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/rappor.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
M components/rappor/BUILD.gn View 1 2 chunks +3 lines, -0 lines 0 comments Download
A components/rappor/rappor_prefs.h View 1 2 3 4 1 chunk +45 lines, -0 lines 0 comments Download
A components/rappor/rappor_prefs.cc View 1 2 3 1 chunk +98 lines, -0 lines 0 comments Download
A components/rappor/rappor_prefs_unittest.cc View 1 2 3 4 1 chunk +136 lines, -0 lines 0 comments Download
M components/rappor/rappor_service.h View 1 2 1 chunk +0 lines, -9 lines 0 comments Download
M components/rappor/rappor_service.cc View 1 2 3 5 chunks +8 lines, -50 lines 0 comments Download
M components/rappor/rappor_service_unittest.cc View 1 1 chunk +0 lines, -15 lines 0 comments Download
M components/rappor/test_rappor_service.h View 1 1 chunk +0 lines, -6 lines 0 comments Download
M components/rappor/test_rappor_service.cc View 1 2 chunks +1 line, -8 lines 0 comments Download

Messages

Total messages: 16 (2 generated)
Alexei Svitkine (slow)
Is it possible to write a unit test for this, so that this sort of ...
5 years, 11 months ago (2015-01-10 19:56:28 UTC) #2
Steven Holte
On 2015/01/10 19:56:28, Alexei Svitkine wrote: > Is it possible to write a unit test ...
5 years, 11 months ago (2015-01-10 21:28:04 UTC) #3
Alexei Svitkine (slow)
How about the following unit test for LoadSecret() function: Set some bad data in the ...
5 years, 11 months ago (2015-01-12 16:46:25 UTC) #4
Steven Holte
On 2015/01/12 16:46:25, Alexei Svitkine wrote: > How about the following unit test for LoadSecret() ...
5 years, 11 months ago (2015-01-12 23:43:55 UTC) #5
Steven Holte
I've created https://codereview.chromium.org/848823002/ to keep just the minimal fix. I think we should commit that ...
5 years, 11 months ago (2015-01-13 04:49:59 UTC) #6
Alexei Svitkine (slow)
I'm not a fan of this structure because it's missing public API (register prefs) and ...
5 years, 11 months ago (2015-01-13 16:44:30 UTC) #7
Steven Holte
On 2015/01/13 16:44:30, Alexei Svitkine wrote: > I'm not a fan of this structure because ...
5 years, 11 months ago (2015-01-13 23:14:08 UTC) #8
Alexei Svitkine (slow)
internal namespace sgtm, some comments below https://codereview.chromium.org/845863002/diff/40001/components/rappor/rappor_prefs_unittest.cc File components/rappor/rappor_prefs_unittest.cc (right): https://codereview.chromium.org/845863002/diff/40001/components/rappor/rappor_prefs_unittest.cc#newcode1 components/rappor/rappor_prefs_unittest.cc:1: // Copyright 2014 ...
5 years, 11 months ago (2015-01-14 17:29:06 UTC) #9
Steven Holte
https://codereview.chromium.org/845863002/diff/40001/components/rappor/rappor_prefs_unittest.cc File components/rappor/rappor_prefs_unittest.cc (right): https://codereview.chromium.org/845863002/diff/40001/components/rappor/rappor_prefs_unittest.cc#newcode1 components/rappor/rappor_prefs_unittest.cc:1: // Copyright 2014 The Chromium Authors. All rights reserved. ...
5 years, 11 months ago (2015-01-14 21:12:17 UTC) #10
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/845863002/diff/60001/components/rappor/rappor_prefs.h File components/rappor/rappor_prefs.h (right): https://codereview.chromium.org/845863002/diff/60001/components/rappor/rappor_prefs.h#newcode36 components/rappor/rappor_prefs.h:36: // Retrieves the value for secret_ from preferences, ...
5 years, 11 months ago (2015-01-14 21:45:38 UTC) #11
Steven Holte
https://codereview.chromium.org/845863002/diff/60001/components/rappor/rappor_prefs.h File components/rappor/rappor_prefs.h (right): https://codereview.chromium.org/845863002/diff/60001/components/rappor/rappor_prefs.h#newcode36 components/rappor/rappor_prefs.h:36: // Retrieves the value for secret_ from preferences, generating ...
5 years, 11 months ago (2015-01-14 23:25:12 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/845863002/80001
5 years, 11 months ago (2015-01-14 23:43:14 UTC) #14
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 11 months ago (2015-01-15 00:43:47 UTC) #15
commit-bot: I haz the power
5 years, 11 months ago (2015-01-15 00:45:41 UTC) #16
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/2a1a54720a4e78e912200444016a51009196bbf0
Cr-Commit-Position: refs/heads/master@{#311591}

Powered by Google App Engine
This is Rietveld 408576698