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

Issue 808173002: Add tests for version migration tesing in for LoginDatabase. (Closed)

Created:
6 years ago by melandory
Modified:
5 years, 11 months ago
Reviewers:
Mike West, *Garrett Casto
CC:
Garrett Casto, chromium-reviews, gcasto+watchlist_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

Add tests for version migration tesing in for LoginDatabase. Unittest which updates database from version 1 to current version. BUG=423828 R=gcasto@chromium.org Committed: https://crrev.com/e0c7f1baf6c4a8adfe9a80d6bab9182de3c7d3a1 Cr-Commit-Position: refs/heads/master@{#310742}

Patch Set 1 : Improovements in login_database_unittest #

Total comments: 10

Patch Set 2 : Tests that newly created database can save form. #

Patch Set 3 : Path initialization in constructor. #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+628 lines, -65 lines) Patch
M components/password_manager/core/browser/login_database.h View 1 chunk +2 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/login_database.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/password_manager/core/browser/login_database_unittest.cc View 1 2 3 4 5 6 chunks +89 lines, -61 lines 0 comments Download
A components/test/data/password_manager/login_db_v1.sql View 1 chunk +53 lines, -0 lines 0 comments Download
A components/test/data/password_manager/login_db_v2.sql View 1 chunk +59 lines, -0 lines 0 comments Download
A components/test/data/password_manager/login_db_v3.sql View 1 chunk +62 lines, -0 lines 0 comments Download
A components/test/data/password_manager/login_db_v4.sql View 1 chunk +65 lines, -0 lines 0 comments Download
A components/test/data/password_manager/login_db_v5.sql View 1 chunk +68 lines, -0 lines 0 comments Download
A components/test/data/password_manager/login_db_v6.sql View 1 chunk +71 lines, -0 lines 0 comments Download
A components/test/data/password_manager/login_db_v7.sql View 1 chunk +83 lines, -0 lines 0 comments Download
M components/test/data/password_manager/login_db_v8.sql View 1 chunk +75 lines, -3 lines 0 comments Download

Messages

Total messages: 22 (9 generated)
melandory
6 years ago (2014-12-17 21:04:05 UTC) #1
melandory
mkwst@chromium.org: Please review changes in gcasto@chromium.org: Please also take a look as I promised to ...
6 years ago (2014-12-18 08:56:05 UTC) #3
Mike West
https://codereview.chromium.org/808173002/diff/20001/components/password_manager/core/browser/login_database_unittest.cc File components/password_manager/core/browser/login_database_unittest.cc (right): https://codereview.chromium.org/808173002/diff/20001/components/password_manager/core/browser/login_database_unittest.cc#newcode1105 components/password_manager/core/browser/login_database_unittest.cc:1105: PathService::Get(base::DIR_SOURCE_ROOT, &database_dump); Why not do this as part of ...
6 years ago (2014-12-18 09:43:44 UTC) #4
Mike West
Marking Garrett as required; he really needs to look at this before landing it. I'm ...
6 years ago (2014-12-18 09:44:16 UTC) #6
Garrett Casto
https://codereview.chromium.org/808173002/diff/20001/components/password_manager/core/browser/login_database_unittest.cc File components/password_manager/core/browser/login_database_unittest.cc (right): https://codereview.chromium.org/808173002/diff/20001/components/password_manager/core/browser/login_database_unittest.cc#newcode1163 components/password_manager/core/browser/login_database_unittest.cc:1163: // Assert that the database was successfully opened and ...
6 years ago (2014-12-18 19:17:22 UTC) #7
melandory
https://codereview.chromium.org/808173002/diff/20001/components/password_manager/core/browser/login_database_unittest.cc File components/password_manager/core/browser/login_database_unittest.cc (right): https://codereview.chromium.org/808173002/diff/20001/components/password_manager/core/browser/login_database_unittest.cc#newcode1105 components/password_manager/core/browser/login_database_unittest.cc:1105: PathService::Get(base::DIR_SOURCE_ROOT, &database_dump); On 2014/12/18 09:43:44, Mike West (OOO until ...
6 years ago (2014-12-22 16:43:28 UTC) #8
melandory
https://codereview.chromium.org/808173002/diff/20001/components/test/data/password_manager/login_db_v8.sql File components/test/data/password_manager/login_db_v8.sql (right): https://codereview.chromium.org/808173002/diff/20001/components/test/data/password_manager/login_db_v8.sql#newcode5 components/test/data/password_manager/login_db_v8.sql:5: INSERT INTO "meta" VALUES('version','8'); On 2014/12/22 16:43:27, melandory wrote: ...
5 years, 11 months ago (2015-01-05 11:00:52 UTC) #11
Garrett Casto
lgtm
5 years, 11 months ago (2015-01-06 21:37:29 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/808173002/110001
5 years, 11 months ago (2015-01-08 13:47:19 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel/builds/23361)
5 years, 11 months ago (2015-01-08 15:17:17 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/808173002/170001
5 years, 11 months ago (2015-01-09 08:51:35 UTC) #20
commit-bot: I haz the power
Committed patchset #6 (id:170001)
5 years, 11 months ago (2015-01-09 08:52:39 UTC) #21
commit-bot: I haz the power
5 years, 11 months ago (2015-01-09 08:53:22 UTC) #22
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/e0c7f1baf6c4a8adfe9a80d6bab9182de3c7d3a1
Cr-Commit-Position: refs/heads/master@{#310742}

Powered by Google App Engine
This is Rietveld 408576698