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

Issue 1480153002: Investigate Android build problems in review 1414463004. (Closed)

Created:
5 years ago by Timo Reimann
Modified:
5 years ago
CC:
vabr+watchlistpasswordmanager_chromium.org, mkwst+watchlist-passwords_chromium.org, vasilii
Base URL:
https://chromium.googlesource.com/chromium/src.git@lkgr
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Investigate Android build problems in review 1414463004. Do not merge this CL; its pure purpose is to identify why the tests refactored along review 1414463004 won't succeed on linux_android_rel_ng.

Patch Set 1 : Patchset 13 from upstream review as starting point #

Patch Set 2 : Move RemoveLoginsByOriginAndTimeImpl_FittingOriginAndTime back to PasswordStoreDefaultTest #

Patch Set 3 : Revert to first patchset; drain message loop after password store closure. #

Patch Set 4 : Let ScopedTempDir dtor take care of cleanup. #

Patch Set 5 : Sleep 4 seconds after temp dir deletion. #

Patch Set 6 : Remove sleep; move ShutdownOnUIThread to test body; disable Mac tests. #

Patch Set 7 : Revert to patchset 1, clutter code with logs #

Patch Set 8 : Revert and drain message loop at the end of each test. #

Patch Set 9 : Store login DB reference in delegate. #

Patch Set 10 : rebase from upstream (fixes compile errors) #

Patch Set 11 : Stop removing logins in RemoveLoginsByOriginAndTimeImpl; adjust test. #

Patch Set 12 : Clutter code with log statements, this time ERROR-level. #

Patch Set 13 : Move failing test to end. #

Patch Set 14 : Clear store on closure in PasswordStoreDefaultTest. #

Patch Set 15 : Trigger delegate init/termination from SetUp/TearDowns. #

Patch Set 16 : Back to origin state; Clear store before temp dir deletion. #

Total comments: 1

Patch Set 17 : Trigger delegate init/termination from SetUp/TearDowns (also clear store before temp dir deletion). #

Patch Set 18 : Move temp directory management into test class fixture. #

Patch Set 19 : Move message loop into test fixture. #

Patch Set 20 : Move store ownership to tests. #

Patch Set 21 : Reorder tests in registration. #

Patch Set 22 : Back to origin state, reorder tests in registration. #

Patch Set 23 : Back to origin state; clear store before message loop drain; rename failing test. #

Patch Set 24 : Create and destroy pointer to delegate in test fixture. #

Patch Set 25 : Go back to origin state; add dummy PasswordStoreOriginTests. #

Patch Set 26 : Move offending test between the middle of the dummy tests. #

Patch Set 27 : Move offending test at the top of the dummy tests. #

Patch Set 28 : Add log messages to failing test chunk. #

Patch Set 29 : Move offending test after Dummy1. #

Patch Set 30 : Move offending test after Dummy2. #

Patch Set 31 : Move offending test after Dummy3. #

Patch Set 32 : Move offending test after Dummy4. #

Patch Set 33 : Move offending test after Dummy4. #

Patch Set 34 : Move offending test after Dummy5. #

Patch Set 35 : Move offending test after Dummy6. #

Patch Set 36 : Replace RunLoop by RunUntilIdle() when removing logins in RemoveLoginsByOriginAndTimeImpl_FittingOr… #

Patch Set 37 : Go back to 'Move message loop into test fixture'; Replace RunLoop by RunUntilIdle(). #

Patch Set 38 : Drain MessageLoopForUI. #

Patch Set 39 : Back to 'Move message loop into fixture'; RunLoop -> RunUntilIdle; add CHECKs. #

Patch Set 40 : Add logging statements. #

Patch Set 41 : Add missing brackets. #

Patch Set 42 : Extend logging. #

Patch Set 43 : Make PasswordStoreDefaultTestDelegate() virtual. #

Patch Set 44 : Pass through PostTask result to PasswordStore::RemoveLoginsByOriginAndTime(). #

Patch Set 45 : Use int as return type PasswordStore::RemoveLoginsByOriginAndTime() to fight compiler problems. #

Patch Set 46 : Go back to 'Clutter code with log statements'; Ignore Mac/PasswordStoreOriginTests; CHECK test-unre… #

Patch Set 47 : revert CHECKing test-unreached code; up-cast store before deleting origins. #

Patch Set 48 : Undo latest changes; make PasswordStore::RemoveLoginsByOriginAndTime pure-virtual. #

Patch Set 49 : Add //url dep on GN test_support target. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+445 lines, -175 lines) Patch
M base/files/scoped_temp_dir.cc View 1 2 3 4 5 6 7 8 9 10 11 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 2 chunks +9 lines, -2 lines 0 comments Download
M base/observer_list_threadsafe.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/password_manager/password_store_mac.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/password_manager/password_store_mac.cc View 1 2 3 4 5 6 7 8 9 11 2 chunks +29 lines, -0 lines 0 comments Download
M chrome/browser/password_manager/password_store_mac_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 4 chunks +54 lines, -7 lines 0 comments Download
M chrome/browser/password_manager/password_store_proxy_mac.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/password_manager/password_store_proxy_mac.cc View 1 2 3 4 5 6 7 8 9 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/password_manager/password_store_x.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/password_manager/password_store_x.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/password_manager/password_store_x_unittest.cc View 2 chunks +1 line, -8 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M components/password_manager.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M components/password_manager/core/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 3 chunks +3 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/login_database.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 8 chunks +31 lines, -2 lines 0 comments Download
M components/password_manager/core/browser/mock_password_store.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 2 chunks +5 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_manager_test_utils.h View 1 chunk +8 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_manager_test_utils.cc View 2 chunks +5 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_store.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 2 chunks +2 lines, -2 lines 0 comments Download
M components/password_manager/core/browser/password_store.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 7 chunks +31 lines, -17 lines 0 comments Download
M components/password_manager/core/browser/password_store_change.h View 1 chunk +4 lines, -0 lines 0 comments Download
A components/password_manager/core/browser/password_store_change.cc View 1 chunk +15 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_store_default.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 4 chunks +18 lines, -2 lines 0 comments Download
M components/password_manager/core/browser/password_store_default_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 43 44 45 8 chunks +73 lines, -126 lines 0 comments Download
A components/password_manager/core/browser/password_store_origin_unittest.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 44 45 47 1 chunk +106 lines, -0 lines 1 comment Download
M components/password_manager/core/browser/password_store_unittest.cc View 1 chunk +0 lines, -7 lines 0 comments Download
M components/password_manager/core/browser/test_password_store.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 1 chunk +4 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/test_password_store.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (11 generated)
Timo Reimann
I moved RemoveLoginsByOriginAndTimeImpl_FittingOriginAndTime back to PasswordStoreDefaultTest in order to verify my hypothesis that the test ...
5 years ago (2015-11-29 00:34:52 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1480153002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1480153002/20001
5 years ago (2015-11-29 15:56:30 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-11-29 17:06:40 UTC) #9
Timo Reimann
On 2015/11/29 17:06:40, commit-bot: I haz the power wrote: > Dry run: This issue passed ...
5 years ago (2015-11-30 02:03:27 UTC) #10
vasilii
https://codereview.chromium.org/1480153002/diff/320001/components/password_manager/core/browser/password_store_default_unittest.cc File components/password_manager/core/browser/password_store_default_unittest.cc (right): https://codereview.chromium.org/1480153002/diff/320001/components/password_manager/core/browser/password_store_default_unittest.cc#newcode132 components/password_manager/core/browser/password_store_default_unittest.cc:132: store_ = nullptr; null the pointer before running the ...
5 years ago (2015-12-07 13:22:29 UTC) #13
vasilii
5 years ago (2015-12-17 13:12:20 UTC) #17
The solution is that simple.

https://codereview.chromium.org/1480153002/diff/1040001/components/password_m...
File components/password_manager/core/browser/password_store_origin_unittest.h
(right):

https://codereview.chromium.org/1480153002/diff/1040001/components/password_m...
components/password_manager/core/browser/password_store_origin_unittest.h:92:
origin, base::Time::Time(), base::Time::Max(), base::Closure());
base::Time()

Powered by Google App Engine
This is Rietveld 408576698