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

Issue 2448313002: Adding unit tests for PreviewsOptOutStoreSQL (Closed)

Created:
4 years, 1 month ago by RyanSturm
Modified:
4 years, 1 month ago
Reviewers:
tbansal1
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adding unit tests for PreviewsOptOutStoreSQL This tests the behavior of the SQL store backing previews opt outs and verifeis state is maintained correctly and errors are handled correctly. BUG=654464 Committed: https://crrev.com/bdd23f4cc8ff26cae9a28f17f7ed762f99ae3c94 Cr-Commit-Position: refs/heads/master@{#430341}

Patch Set 1 #

Patch Set 2 : ios issue #

Total comments: 4

Patch Set 3 : tbansal comments #

Patch Set 4 : rebase #

Patch Set 5 : histogram in tests #

Patch Set 6 : size_t case to int #

Total comments: 16

Patch Set 7 : tbansal #

Unified diffs Side-by-side diffs Delta from patch set Stats (+293 lines, -13 lines) Patch
M components/previews/core/BUILD.gn View 1 chunk +3 lines, -0 lines 0 comments Download
M components/previews/core/previews_black_list_item.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M components/previews/core/previews_black_list_item.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M components/previews/core/previews_opt_out_store_sql.cc View 1 2 3 4 5 6 3 chunks +35 lines, -13 lines 0 comments Download
A components/previews/core/previews_opt_out_store_sql_unittest.cc View 1 2 3 4 5 6 1 chunk +249 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 57 (46 generated)
RyanSturm
tbansal: PTAL
4 years, 1 month ago (2016-10-26 21:15:07 UTC) #26
tbansal1
On 2016/10/26 21:15:07, Ryan Sturm wrote: > tbansal: PTAL "verifeis" typo in CL description
4 years, 1 month ago (2016-10-28 22:00:21 UTC) #27
tbansal1
https://codereview.chromium.org/2448313002/diff/100001/components/previews/core/previews_black_list_item.h File components/previews/core/previews_black_list_item.h (right): https://codereview.chromium.org/2448313002/diff/100001/components/previews/core/previews_black_list_item.h#newcode47 components/previews/core/previews_black_list_item.h:47: size_t OptOutRecordsSizeForTesting(); const method. https://codereview.chromium.org/2448313002/diff/100001/components/previews/core/previews_experiments.cc File components/previews/core/previews_experiments.cc (right): https://codereview.chromium.org/2448313002/diff/100001/components/previews/core/previews_experiments.cc#newcode48 ...
4 years, 1 month ago (2016-10-28 22:07:14 UTC) #28
RyanSturm
tbansal: ptal https://codereview.chromium.org/2448313002/diff/100001/components/previews/core/previews_black_list_item.h File components/previews/core/previews_black_list_item.h (right): https://codereview.chromium.org/2448313002/diff/100001/components/previews/core/previews_black_list_item.h#newcode47 components/previews/core/previews_black_list_item.h:47: size_t OptOutRecordsSizeForTesting(); On 2016/10/28 22:07:14, tbansal1 wrote: ...
4 years, 1 month ago (2016-11-03 18:30:03 UTC) #45
tbansal1
mostly nits. https://codereview.chromium.org/2448313002/diff/180001/components/previews/core/previews_opt_out_store_sql.cc File components/previews/core/previews_opt_out_store_sql.cc (right): https://codereview.chromium.org/2448313002/diff/180001/components/previews/core/previews_opt_out_store_sql.cc#newcode39 components/previews/core/previews_opt_out_store_sql.cc:39: // opt out store. May be add ...
4 years, 1 month ago (2016-11-07 17:10:26 UTC) #46
tbansal1
mostly nits. https://codereview.chromium.org/2448313002/diff/180001/components/previews/core/previews_opt_out_store_sql.cc File components/previews/core/previews_opt_out_store_sql.cc (right): https://codereview.chromium.org/2448313002/diff/180001/components/previews/core/previews_opt_out_store_sql.cc#newcode39 components/previews/core/previews_opt_out_store_sql.cc:39: // opt out store. May be add ...
4 years, 1 month ago (2016-11-07 17:10:27 UTC) #47
RyanSturm
https://codereview.chromium.org/2448313002/diff/180001/components/previews/core/previews_opt_out_store_sql.cc File components/previews/core/previews_opt_out_store_sql.cc (right): https://codereview.chromium.org/2448313002/diff/180001/components/previews/core/previews_opt_out_store_sql.cc#newcode39 components/previews/core/previews_opt_out_store_sql.cc:39: // opt out store. On 2016/11/07 17:10:26, tbansal1 wrote: ...
4 years, 1 month ago (2016-11-07 18:24:29 UTC) #49
tbansal1
lgtm https://codereview.chromium.org/2448313002/diff/180001/components/previews/core/previews_opt_out_store_sql_unittest.cc File components/previews/core/previews_opt_out_store_sql_unittest.cc (right): https://codereview.chromium.org/2448313002/diff/180001/components/previews/core/previews_opt_out_store_sql_unittest.cc#newcode138 components/previews/core/previews_opt_out_store_sql_unittest.cc:138: EXPECT_EQ(now, iter->second->most_recent_opt_out_time().value()); On 2016/11/07 18:24:29, Ryan Sturm wrote: ...
4 years, 1 month ago (2016-11-07 18:27:15 UTC) #51
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/2448313002/200001
4 years, 1 month ago (2016-11-07 18:42:24 UTC) #54
commit-bot: I haz the power
Committed patchset #7 (id:200001)
4 years, 1 month ago (2016-11-07 19:24:25 UTC) #55
commit-bot: I haz the power
4 years, 1 month ago (2016-11-07 19:35:13 UTC) #57
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/bdd23f4cc8ff26cae9a28f17f7ed762f99ae3c94
Cr-Commit-Position: refs/heads/master@{#430341}

Powered by Google App Engine
This is Rietveld 408576698