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

Issue 12223006: Cleanup: Introduce AsyncFileTestHelper for testing with async file/quota operations (Closed)

Created:
7 years, 10 months ago by kinuko
Modified:
7 years, 10 months ago
Reviewers:
jam, nhiroki, tzik
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, kinuko+watch, jam, tzik+watch_chromium.org
Visibility:
Public.

Description

Introduce AsyncFileTestHelper for testing with async file/quota operations Also gradually deprecate FileUtilHelper since its code is no longer used in the actual code path (used only in unittests). BUG=146215 TEST=content_unittests:LocalFileSystem* TBR=jam@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=181278

Patch Set 1 #

Total comments: 8

Patch Set 2 : addressed comments #

Total comments: 2

Patch Set 3 : fixed indent #

Unified diffs Side-by-side diffs Delta from patch set Stats (+414 lines, -287 lines) Patch
M content/content_tests.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A webkit/fileapi/async_file_test_helper.h View 1 1 chunk +90 lines, -0 lines 0 comments Download
A webkit/fileapi/async_file_test_helper.cc View 1 1 chunk +235 lines, -0 lines 0 comments Download
M webkit/fileapi/local_file_system_cross_operation_unittest.cc View 6 chunks +19 lines, -148 lines 0 comments Download
M webkit/fileapi/local_file_system_operation_unittest.cc View 1 2 8 chunks +17 lines, -39 lines 0 comments Download
M webkit/fileapi/local_file_system_quota_unittest.cc View 4 chunks +10 lines, -24 lines 0 comments Download
M webkit/fileapi/local_file_system_test_helper.h View 1 chunk +0 lines, -10 lines 0 comments Download
M webkit/fileapi/local_file_system_test_helper.cc View 2 chunks +0 lines, -15 lines 0 comments Download
M webkit/fileapi/local_file_util_unittest.cc View 1 2 6 chunks +15 lines, -11 lines 0 comments Download
M webkit/fileapi/obfuscated_file_util_unittest.cc View 1 2 11 chunks +26 lines, -40 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
kinuko
The body of AsyncFileTestHelper is mostly just extracted from LocalFileSystemCrossOperationTest (so that they can be ...
7 years, 10 months ago (2013-02-05 12:33:01 UTC) #1
nhiroki
https://codereview.chromium.org/12223006/diff/1/webkit/fileapi/async_file_test_helper.h File webkit/fileapi/async_file_test_helper.h (right): https://codereview.chromium.org/12223006/diff/1/webkit/fileapi/async_file_test_helper.h#newcode29 webkit/fileapi/async_file_test_helper.h:29: // Performs Copy from |src| and |dest| and returns ...
7 years, 10 months ago (2013-02-05 15:12:02 UTC) #2
tzik
Looks good. Could you look into test failure? Seems to just need test expectation update.
7 years, 10 months ago (2013-02-06 04:37:07 UTC) #3
kinuko
Thanks, updated the header comment & test expectations. https://codereview.chromium.org/12223006/diff/1/webkit/fileapi/async_file_test_helper.h File webkit/fileapi/async_file_test_helper.h (right): https://codereview.chromium.org/12223006/diff/1/webkit/fileapi/async_file_test_helper.h#newcode29 webkit/fileapi/async_file_test_helper.h:29: // ...
7 years, 10 months ago (2013-02-06 11:39:59 UTC) #4
tzik
lgtm
7 years, 10 months ago (2013-02-07 06:41:39 UTC) #5
nhiroki
lgtm https://codereview.chromium.org/12223006/diff/9003/webkit/fileapi/local_file_system_operation_unittest.cc File webkit/fileapi/local_file_system_operation_unittest.cc (right): https://codereview.chromium.org/12223006/diff/9003/webkit/fileapi/local_file_system_operation_unittest.cc#newcode600 webkit/fileapi/local_file_system_operation_unittest.cc:600: FILE_PATH_LITERAL("NewFile"))); nit: fix indentation (10 -> 6)
7 years, 10 months ago (2013-02-07 06:43:00 UTC) #6
kinuko
Thanks! https://codereview.chromium.org/12223006/diff/9003/webkit/fileapi/local_file_system_operation_unittest.cc File webkit/fileapi/local_file_system_operation_unittest.cc (right): https://codereview.chromium.org/12223006/diff/9003/webkit/fileapi/local_file_system_operation_unittest.cc#newcode600 webkit/fileapi/local_file_system_operation_unittest.cc:600: FILE_PATH_LITERAL("NewFile"))); On 2013/02/07 06:43:00, nhiroki wrote: > nit: ...
7 years, 10 months ago (2013-02-07 09:03:22 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/12223006/6003
7 years, 10 months ago (2013-02-07 09:06:45 UTC) #8
commit-bot: I haz the power
Presubmit check for 12223006-6003 failed and returned exit status 1. Running presubmit commit checks ...
7 years, 10 months ago (2013-02-07 09:06:50 UTC) #9
kinuko
Adding jam@ for adding two test files into content/content_tests.gypi. Thanks!
7 years, 10 months ago (2013-02-07 09:12:12 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/12223006/6003
7 years, 10 months ago (2013-02-07 09:13:01 UTC) #11
commit-bot: I haz the power
7 years, 10 months ago (2013-02-07 10:28:19 UTC) #12
Retried try job too often on win_rel for step(s) browser_tests
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&nu...

Powered by Google App Engine
This is Rietveld 408576698