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

Issue 1991503002: [sql] sql::ScopedErrorIgnorer rename to sql::test::ScopedErrorExpecter (Closed)

Created:
4 years, 7 months ago by Scott Hess - ex-Googler
Modified:
4 years, 6 months ago
Reviewers:
Mark P, jam, sdefresne
CC:
chromium-reviews, michaeln, vabr+watchlistpasswordmanager_chromium.org, jam, darin-cc_chromium.org, gcasto+watchlist_chromium.org, sync-reviews_chromium.org, mkwst+watchlist-passwords_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[sql] sql::ScopedErrorIgnorer rename to sql::test::ScopedErrorExpecter "Ignore" was a result of focussing on avoiding the DCHECK in the sql::Connection implementation, while "expect" focusses on what the test is trying to do. Changing because "ignore" is ambiguous. BUG=597785 TBR=sdefresne@chromium.org, jam@chromium.org Committed: https://crrev.com/97681440d6f680269022d9087fb524b8b75008a4 Cr-Commit-Position: refs/heads/master@{#400910}

Patch Set 1 #

Patch Set 2 : Bit of cleanup in scoped_error_expecter #

Patch Set 3 : Back out file rename #

Patch Set 4 : Restore file rename #

Total comments: 11

Patch Set 5 : rebase #

Total comments: 7

Patch Set 6 : Comment wordsmithing. #

Total comments: 2

Patch Set 7 : typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+328 lines, -321 lines) Patch
M components/history/core/browser/thumbnail_database.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/history/core/browser/thumbnail_database_unittest.cc View 3 11 chunks +31 lines, -31 lines 0 comments Download
M components/history/core/browser/top_sites_database.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/history/core/browser/top_sites_database_unittest.cc View 3 8 chunks +22 lines, -22 lines 0 comments Download
M components/password_manager/core/browser/affiliation_database.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/password_manager/core/browser/affiliation_database_unittest.cc View 3 2 chunks +7 lines, -7 lines 0 comments Download
M content/browser/appcache/appcache_database.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/appcache/appcache_database_unittest.cc View 3 13 chunks +22 lines, -22 lines 0 comments Download
M content/browser/databases_table_unittest.cc View 3 3 chunks +4 lines, -4 lines 0 comments Download
M content/browser/dom_storage/dom_storage_database_unittest.cc View 3 4 chunks +9 lines, -9 lines 0 comments Download
M content/browser/quota/quota_database_unittest.cc View 3 2 chunks +7 lines, -5 lines 0 comments Download
M sql/BUILD.gn View 3 1 chunk +2 lines, -2 lines 0 comments Download
M sql/connection.h View 1 2 3 4 5 4 chunks +15 lines, -13 lines 0 comments Download
M sql/connection.cc View 1 2 3 4 5 chunks +15 lines, -15 lines 0 comments Download
M sql/connection_unittest.cc View 1 2 3 4 11 chunks +36 lines, -36 lines 0 comments Download
M sql/recovery_unittest.cc View 3 2 chunks +4 lines, -4 lines 0 comments Download
M sql/sql.gyp View 3 1 chunk +2 lines, -2 lines 0 comments Download
M sql/statement_unittest.cc View 3 2 chunks +9 lines, -7 lines 0 comments Download
A sql/test/scoped_error_expecter.h View 1 2 3 4 5 6 1 chunk +76 lines, -0 lines 0 comments Download
A sql/test/scoped_error_expecter.cc View 3 1 chunk +63 lines, -0 lines 0 comments Download
D sql/test/scoped_error_ignorer.h View 3 1 chunk +0 lines, -73 lines 0 comments Download
D sql/test/scoped_error_ignorer.cc View 3 1 chunk +0 lines, -65 lines 0 comments Download

Messages

Total messages: 38 (11 generated)
Scott Hess - ex-Googler
Bit of cleanup in scoped_error_expecter
4 years, 7 months ago (2016-05-17 23:29:44 UTC) #1
Scott Hess - ex-Googler
WDYT of a change like this to clarify how the class is used? It's more ...
4 years, 7 months ago (2016-05-17 23:31:10 UTC) #3
Mark P
On 2016/05/17 23:31:10, Scott Hess wrote: > WDYT of a change like this to clarify ...
4 years, 7 months ago (2016-05-18 17:41:22 UTC) #4
Scott Hess - ex-Googler
On 2016/05/18 17:41:22, Mark P wrote: > On 2016/05/17 23:31:10, Scott Hess wrote: > > ...
4 years, 7 months ago (2016-05-21 03:53:44 UTC) #5
Scott Hess - ex-Googler
Back out file rename
4 years, 7 months ago (2016-05-23 14:59:20 UTC) #6
Scott Hess - ex-Googler
Restore file rename
4 years, 7 months ago (2016-05-23 15:01:26 UTC) #7
Scott Hess - ex-Googler
On 2016/05/21 03:53:44, Scott Hess wrote: > On 2016/05/18 17:41:22, Mark P wrote: > > ...
4 years, 7 months ago (2016-05-23 15:03:48 UTC) #8
Mark P
Thanks for patchset #3. That made this change much easier to review. I like how ...
4 years, 7 months ago (2016-05-23 19:53:28 UTC) #9
Scott Hess - ex-Googler
I'm going to break off the code to remove IsExpectedSqliteCompileError(), because that was added in ...
4 years, 6 months ago (2016-06-03 00:02:12 UTC) #10
Mark P
I know you split off some of this into the other changelist that I just ...
4 years, 6 months ago (2016-06-08 22:13:37 UTC) #11
Scott Hess - ex-Googler
rebase
4 years, 6 months ago (2016-06-14 22:24:22 UTC) #12
Scott Hess - ex-Googler
On 2016/06/14 22:24:22, Scott Hess wrote: > rebase
4 years, 6 months ago (2016-06-14 22:27:06 UTC) #13
Scott Hess - ex-Googler
On 2016/06/14 22:24:22, Scott Hess wrote: > rebase AFAICT, the rebase only pulled in expected ...
4 years, 6 months ago (2016-06-14 22:27:41 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1991503002/80001
4 years, 6 months ago (2016-06-14 22:29:47 UTC) #16
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-device on tryserver.chromium.mac (JOB_TIMED_OUT, no build URL) ...
4 years, 6 months ago (2016-06-15 00:31:01 UTC) #18
Mark P
lgtm with two quibbles below --mark https://codereview.chromium.org/1991503002/diff/60001/sql/test/scoped_error_expecter.cc File sql/test/scoped_error_expecter.cc (right): https://codereview.chromium.org/1991503002/diff/60001/sql/test/scoped_error_expecter.cc#newcode59 sql/test/scoped_error_expecter.cc:59: return false; On ...
4 years, 6 months ago (2016-06-15 04:39:44 UTC) #19
Scott Hess - ex-Googler
Comment wordsmithing.
4 years, 6 months ago (2016-06-20 23:41:30 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1991503002/100001
4 years, 6 months ago (2016-06-21 00:18:25 UTC) #22
Scott Hess - ex-Googler
PS5 has the comment changes, appears w/o rebase convolutions. https://codereview.chromium.org/1991503002/diff/80001/sql/connection.h File sql/connection.h (right): https://codereview.chromium.org/1991503002/diff/80001/sql/connection.h#newcode480 sql/connection.h:480: ...
4 years, 6 months ago (2016-06-21 00:18:26 UTC) #23
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-21 01:46:14 UTC) #25
Mark P
still lgtm a minor quibble (typo?) https://codereview.chromium.org/1991503002/diff/80001/sync/syncable/directory_backing_store_unittest.cc File sync/syncable/directory_backing_store_unittest.cc (left): https://codereview.chromium.org/1991503002/diff/80001/sync/syncable/directory_backing_store_unittest.cc#oldcode24 sync/syncable/directory_backing_store_unittest.cc:24: #include "sql/test/scoped_error_ignorer.h" On ...
4 years, 6 months ago (2016-06-21 04:34:11 UTC) #26
Scott Hess - ex-Googler
typo
4 years, 6 months ago (2016-06-21 05:48:32 UTC) #27
Scott Hess - ex-Googler
The changes outside sql/ are mechanical find/replace to follow the renaming in sql/, so going ...
4 years, 6 months ago (2016-06-21 05:55:13 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1991503002/120001
4 years, 6 months ago (2016-06-21 05:55:35 UTC) #33
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 6 months ago (2016-06-21 06:56:48 UTC) #35
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/97681440d6f680269022d9087fb524b8b75008a4 Cr-Commit-Position: refs/heads/master@{#400910}
4 years, 6 months ago (2016-06-21 06:58:16 UTC) #37
sdefresne
4 years, 6 months ago (2016-06-21 07:37:41 UTC) #38
Message was sent while issue was closed.
rs lgtm for components/

Powered by Google App Engine
This is Rietveld 408576698