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

Issue 7484052: Return true when file size is zero. (Closed)

Created:
9 years, 5 months ago by Huyen
Modified:
9 years, 4 months ago
CC:
chromium-reviews, brettw-cc_chromium.org
Visibility:
Public.

Description

In test_file_util_mac.cc, when evicting file from cache, do not map a file when it is empty. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=95334

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fix according to code review. #

Total comments: 3

Patch Set 3 : Change comment to make it clear evicting an empty file will result in error #

Total comments: 8

Patch Set 4 : ... #

Total comments: 2

Patch Set 5 : ... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -2 lines) Patch
M base/test/test_file_util_mac.cc View 1 2 3 4 1 chunk +15 lines, -2 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Huyen
I observed a bug on the Mac where CopyRecursiveDirNoCache() would fail when trying to mmap ...
9 years, 5 months ago (2011-07-22 23:44:14 UTC) #1
kkania
write a better CL description http://codereview.chromium.org/7484052/diff/1/base/test/test_file_util_mac.cc File base/test/test_file_util_mac.cc (right): http://codereview.chromium.org/7484052/diff/1/base/test/test_file_util_mac.cc#newcode20 base/test/test_file_util_mac.cc:20: int64 length; add a ...
9 years, 5 months ago (2011-07-22 23:48:58 UTC) #2
Huyen
http://codereview.chromium.org/7484052/diff/1/base/test/test_file_util_mac.cc File base/test/test_file_util_mac.cc (right): http://codereview.chromium.org/7484052/diff/1/base/test/test_file_util_mac.cc#newcode20 base/test/test_file_util_mac.cc:20: int64 length; On 2011/07/22 23:48:58, kkania wrote: > add ...
9 years, 5 months ago (2011-07-23 00:00:36 UTC) #3
kkania
http://codereview.chromium.org/7484052/diff/4001/base/test/test_file_util_mac.cc File base/test/test_file_util_mac.cc (right): http://codereview.chromium.org/7484052/diff/4001/base/test/test_file_util_mac.cc#newcode26 base/test/test_file_util_mac.cc:26: // When a file is empty, we do not ...
9 years, 5 months ago (2011-07-23 00:23:30 UTC) #4
kkania
http://codereview.chromium.org/7484052/diff/4001/base/test/test_file_util_mac.cc File base/test/test_file_util_mac.cc (right): http://codereview.chromium.org/7484052/diff/4001/base/test/test_file_util_mac.cc#newcode21 base/test/test_file_util_mac.cc:21: if (!file_util::GetFileSize(file, &length)) { now that I think about ...
9 years, 5 months ago (2011-07-23 00:27:02 UTC) #5
TVL
lgtm http://codereview.chromium.org/7484052/diff/4001/base/test/test_file_util_mac.cc File base/test/test_file_util_mac.cc (right): http://codereview.chromium.org/7484052/diff/4001/base/test/test_file_util_mac.cc#newcode21 base/test/test_file_util_mac.cc:21: if (!file_util::GetFileSize(file, &length)) { On 2011/07/23 00:27:02, kkania ...
9 years, 5 months ago (2011-07-25 12:40:10 UTC) #6
kkania
LGTM
9 years, 5 months ago (2011-07-25 14:36:57 UTC) #7
commit-bot: I haz the power
Presubmit check for 7484052-7001 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 5 months ago (2011-07-25 17:46:24 UTC) #8
commit-bot: I haz the power
Presubmit check for 7484052-7001 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 5 months ago (2011-07-25 17:46:44 UTC) #9
Huyen
TVL, kkania, I think my latest patch needs LGTM in order to use commit bot. ...
9 years, 5 months ago (2011-07-25 17:50:02 UTC) #10
kkania
You need an LGTM from someone in base/OWNERS See http://www.chromium.org/developers/owners-files-1
9 years, 5 months ago (2011-07-25 17:53:32 UTC) #11
commit-bot: I haz the power
Presubmit check for 7484052-7001 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 4 months ago (2011-07-29 22:18:48 UTC) #12
Huyen
Hi guys, it seems like I still don't have the owner's LGTM for this change. ...
9 years, 4 months ago (2011-07-29 22:22:56 UTC) #13
Huyen
+Pawel Pawel, can you take a look? I need your approval as an OWNER.
9 years, 4 months ago (2011-07-29 22:54:54 UTC) #14
Paweł Hajdan Jr.
LGTM with comments. http://codereview.chromium.org/7484052/diff/7001/base/test/test_file_util_mac.cc File base/test/test_file_util_mac.cc (right): http://codereview.chromium.org/7484052/diff/7001/base/test/test_file_util_mac.cc#newcode22 base/test/test_file_util_mac.cc:22: DLOG(WARNING) << "failed to get size ...
9 years, 4 months ago (2011-07-30 00:05:09 UTC) #15
Huyen
http://codereview.chromium.org/7484052/diff/7001/base/test/test_file_util_mac.cc File base/test/test_file_util_mac.cc (right): http://codereview.chromium.org/7484052/diff/7001/base/test/test_file_util_mac.cc#newcode22 base/test/test_file_util_mac.cc:22: DLOG(WARNING) << "failed to get size of " << ...
9 years, 4 months ago (2011-08-02 22:02:27 UTC) #16
Paweł Hajdan Jr.
LGTM with a comment. http://codereview.chromium.org/7484052/diff/15001/base/test/test_file_util_mac.cc File base/test/test_file_util_mac.cc (right): http://codereview.chromium.org/7484052/diff/15001/base/test/test_file_util_mac.cc#newcode28 base/test/test_file_util_mac.cc:28: if (length == 0) I ...
9 years, 4 months ago (2011-08-02 22:22:20 UTC) #17
Huyen
http://codereview.chromium.org/7484052/diff/15001/base/test/test_file_util_mac.cc File base/test/test_file_util_mac.cc (right): http://codereview.chromium.org/7484052/diff/15001/base/test/test_file_util_mac.cc#newcode28 base/test/test_file_util_mac.cc:28: if (length == 0) On 2011/08/02 22:22:20, Paweł Hajdan ...
9 years, 4 months ago (2011-08-02 23:20:06 UTC) #18
commit-bot: I haz the power
9 years, 4 months ago (2011-08-03 22:08:08 UTC) #19
Change committed as 95334

Powered by Google App Engine
This is Rietveld 408576698