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

Issue 335473004: [SyncFS] Make SyncEngineTest multi-threaded test (Closed)

Created:
6 years, 6 months ago by peria
Modified:
6 years, 6 months ago
Reviewers:
nhiroki, tzik
CC:
chromium-reviews, kinuko+fileapi, nhiroki, tzik
Project:
chromium
Visibility:
Public.

Description

[SyncFS] Make SyncEngineTest multi-threaded test. Main target of this test is communication between SyncEngine in UI thread and SyncWorker in a worker thread. BUG=378621 TEST=./unit_tests --gtest_filter="SyncEngineTest.*" Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278680

Patch Set 1 : #

Total comments: 5

Patch Set 2 : Remove local RunLoop instances #

Total comments: 8

Patch Set 3 : Work for nits #

Patch Set 4 : arraysize does not support structures defined in a function #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -250 lines) Patch
M chrome/browser/sync_file_system/drive_backend/sync_engine_unittest.cc View 1 2 3 1 chunk +130 lines, -250 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
peria
PTL.
6 years, 6 months ago (2014-06-18 06:36:31 UTC) #1
nhiroki
https://codereview.chromium.org/335473004/diff/120001/chrome/browser/sync_file_system/drive_backend/sync_engine_unittest.cc File chrome/browser/sync_file_system/drive_backend/sync_engine_unittest.cc (right): https://codereview.chromium.org/335473004/diff/120001/chrome/browser/sync_file_system/drive_backend/sync_engine_unittest.cc#newcode41 chrome/browser/sync_file_system/drive_backend/sync_engine_unittest.cc:41: public RemoteFileSyncService::Observer, Although you ignore the result in OnRemoteXXX(), ...
6 years, 6 months ago (2014-06-18 06:58:10 UTC) #2
nhiroki
https://codereview.chromium.org/335473004/diff/120001/chrome/browser/sync_file_system/drive_backend/sync_engine_unittest.cc File chrome/browser/sync_file_system/drive_backend/sync_engine_unittest.cc (right): https://codereview.chromium.org/335473004/diff/120001/chrome/browser/sync_file_system/drive_backend/sync_engine_unittest.cc#newcode41 chrome/browser/sync_file_system/drive_backend/sync_engine_unittest.cc:41: public RemoteFileSyncService::Observer, On 2014/06/18 06:58:10, nhiroki wrote: > Although ...
6 years, 6 months ago (2014-06-18 07:11:30 UTC) #3
tzik
https://codereview.chromium.org/335473004/diff/120001/chrome/browser/sync_file_system/drive_backend/sync_engine_unittest.cc File chrome/browser/sync_file_system/drive_backend/sync_engine_unittest.cc (right): https://codereview.chromium.org/335473004/diff/120001/chrome/browser/sync_file_system/drive_backend/sync_engine_unittest.cc#newcode70 chrome/browser/sync_file_system/drive_backend/sync_engine_unittest.cc:70: base::SequencedWorkerPool::SKIP_ON_SHUTDOWN); I think we can pass NULL to file_task_runner ...
6 years, 6 months ago (2014-06-18 07:39:55 UTC) #4
peria
Thanks to Tsuiki-san's suggestion, many wasteful lines are removed!! https://codereview.chromium.org/335473004/diff/120001/chrome/browser/sync_file_system/drive_backend/sync_engine_unittest.cc File chrome/browser/sync_file_system/drive_backend/sync_engine_unittest.cc (right): https://codereview.chromium.org/335473004/diff/120001/chrome/browser/sync_file_system/drive_backend/sync_engine_unittest.cc#newcode41 chrome/browser/sync_file_system/drive_backend/sync_engine_unittest.cc:41: ...
6 years, 6 months ago (2014-06-18 08:05:02 UTC) #5
tzik
Looks good! https://codereview.chromium.org/335473004/diff/160001/chrome/browser/sync_file_system/drive_backend/sync_engine_unittest.cc File chrome/browser/sync_file_system/drive_backend/sync_engine_unittest.cc (right): https://codereview.chromium.org/335473004/diff/160001/chrome/browser/sync_file_system/drive_backend/sync_engine_unittest.cc#newcode67 chrome/browser/sync_file_system/drive_backend/sync_engine_unittest.cc:67: base::RunLoop().RunUntilIdle(); Can we drop RunUntilIdle()? This will ...
6 years, 6 months ago (2014-06-18 12:08:58 UTC) #6
peria
Updated. PTAL. https://codereview.chromium.org/335473004/diff/160001/chrome/browser/sync_file_system/drive_backend/sync_engine_unittest.cc File chrome/browser/sync_file_system/drive_backend/sync_engine_unittest.cc (right): https://codereview.chromium.org/335473004/diff/160001/chrome/browser/sync_file_system/drive_backend/sync_engine_unittest.cc#newcode67 chrome/browser/sync_file_system/drive_backend/sync_engine_unittest.cc:67: base::RunLoop().RunUntilIdle(); On 2014/06/18 12:08:58, tzik wrote: > ...
6 years, 6 months ago (2014-06-19 03:19:03 UTC) #7
tzik
lgtm
6 years, 6 months ago (2014-06-19 05:03:38 UTC) #8
nhiroki
lgtm
6 years, 6 months ago (2014-06-19 06:16:50 UTC) #9
peria
The CQ bit was checked by peria@chromium.org
6 years, 6 months ago (2014-06-19 06:23:11 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/peria@chromium.org/335473004/180001
6 years, 6 months ago (2014-06-19 06:25:20 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-19 14:14:24 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg/builds/197659)
6 years, 6 months ago (2014-06-19 14:14:25 UTC) #13
peria
The CQ bit was checked by peria@chromium.org
6 years, 6 months ago (2014-06-20 04:19:44 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/peria@chromium.org/335473004/240001
6 years, 6 months ago (2014-06-20 04:22:46 UTC) #15
commit-bot: I haz the power
6 years, 6 months ago (2014-06-20 12:03:39 UTC) #16
Message was sent while issue was closed.
Change committed as 278680

Powered by Google App Engine
This is Rietveld 408576698