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

Issue 1139883004: Testing: Fixed printing FilePaths when a test fails comparing them. (Closed)

Created:
5 years, 7 months ago by Matt Giuca
Modified:
5 years, 7 months ago
Reviewers:
danakj
CC:
chromium-reviews, erikwright+watch_chromium.org, chrome-apps-syd-reviews_chromium.org, rvargas (doing something else)
Base URL:
https://chromium.googlesource.com/chromium/src.git@bauerb-profiles-ephemeral
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Testing: Fixed printing FilePaths when a test fails comparing them. Moved PrintTo (for FilePath) into the base namespace (it was already implemented, but in the wrong namespace). The PrintTo function has to be in the same namespace as the class being printed. BUG=488344 Committed: https://crrev.com/abf18048b9a498ced34e2f8dff1fa1dcf6737927 Cr-Commit-Position: refs/heads/master@{#331763}

Patch Set 1 #

Patch Set 2 : Added test. #

Patch Set 3 : Remove unnecessary qualifier. #

Total comments: 3

Patch Set 4 : Moved PrintTo definition to test_file_util.cc. #

Patch Set 5 : Fix compile on Windows. #

Patch Set 6 : Remove BASE_EXPORT; see if this fixes Windows compile. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -7 lines) Patch
M base/files/file_path.h View 1 2 3 4 5 2 chunks +8 lines, -3 lines 0 comments Download
M base/files/file_path.cc View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M base/files/file_path_unittest.cc View 1 2 3 4 2 chunks +11 lines, -0 lines 0 comments Download
M base/test/test_file_util.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (8 generated)
Matt Giuca
5 years, 7 months ago (2015-05-15 05:06:01 UTC) #2
Matt Giuca
Just noticed that rvargas is on extended leave. +danakj, would you be able to review ...
5 years, 7 months ago (2015-05-21 04:52:20 UTC) #4
danakj
https://codereview.chromium.org/1139883004/diff/40001/base/files/file_path.h File base/files/file_path.h (right): https://codereview.chromium.org/1139883004/diff/40001/base/files/file_path.h#newcode437 base/files/file_path.h:437: BASE_EXPORT extern void PrintTo(const FilePath& path, std::ostream* out); While ...
5 years, 7 months ago (2015-05-22 20:59:24 UTC) #5
Matt Giuca
https://codereview.chromium.org/1139883004/diff/40001/base/files/file_path.h File base/files/file_path.h (right): https://codereview.chromium.org/1139883004/diff/40001/base/files/file_path.h#newcode437 base/files/file_path.h:437: BASE_EXPORT extern void PrintTo(const FilePath& path, std::ostream* out); Done ...
5 years, 7 months ago (2015-05-25 03:40:15 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1139883004/60001
5 years, 7 months ago (2015-05-25 03:40:22 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win8_chromium_rel on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_rel/builds/86831)
5 years, 7 months ago (2015-05-25 05:04:23 UTC) #10
Matt Giuca
https://codereview.chromium.org/1139883004/diff/40001/base/files/file_path.h File base/files/file_path.h (right): https://codereview.chromium.org/1139883004/diff/40001/base/files/file_path.h#newcode437 base/files/file_path.h:437: BASE_EXPORT extern void PrintTo(const FilePath& path, std::ostream* out); Sorry, ...
5 years, 7 months ago (2015-05-25 05:54:02 UTC) #11
danakj
On 2015/05/25 03:40:15, Matt Giuca wrote: > https://codereview.chromium.org/1139883004/diff/40001/base/files/file_path.h > File base/files/file_path.h (right): > > https://codereview.chromium.org/1139883004/diff/40001/base/files/file_path.h#newcode437 ...
5 years, 7 months ago (2015-05-26 18:40:18 UTC) #12
Matt Giuca
> Right, I saw this too and am wondering where it's coming from. Can you ...
5 years, 7 months ago (2015-05-27 01:27:32 UTC) #13
danakj
Thanks for checking that out for me, it's good to understand the behaviour of things. ...
5 years, 7 months ago (2015-05-27 17:44:45 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1139883004/80001
5 years, 7 months ago (2015-05-28 00:52:41 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/42983)
5 years, 7 months ago (2015-05-28 02:10:38 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1139883004/100001
5 years, 7 months ago (2015-05-28 07:30:24 UTC) #21
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 7 months ago (2015-05-28 10:11:47 UTC) #22
commit-bot: I haz the power
5 years, 7 months ago (2015-05-28 10:12:44 UTC) #23
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/abf18048b9a498ced34e2f8dff1fa1dcf6737927
Cr-Commit-Position: refs/heads/master@{#331763}

Powered by Google App Engine
This is Rietveld 408576698