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

Issue 32663002: Remove _unit_test_config hack, instead use FileSystem() in cpp.py & cpp_unittest.py (Closed)

Created:
7 years, 2 months ago by r.kasibhatla
Modified:
7 years, 2 months ago
Reviewers:
Dirk Pranke, ojan
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Remove _unit_test_config hack, instead use FileSystem() in cpp.py & cpp_unittest.py Tools/Scripts/webkitpy/style/checkers/cpp*.py scripts use _unit_test_config global variable as a scaffholding, to imitate opening of mock header {contents}. It is a hack and should be avoided. Instead we should use filesystem (FileSystem()) object for the purpose. BUG=305507 TEST=None; no behavior change; Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=160363

Patch Set 1 #

Patch Set 2 : Reworked as per comments! #

Patch Set 3 : Removed unneccessary import of codecs #

Total comments: 1

Patch Set 4 : Updated to ToT, patch for landing! #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -93 lines) Patch
M Tools/Scripts/webkitpy/style/checkers/cpp.py View 1 2 3 9 chunks +10 lines, -22 lines 1 comment Download
M Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py View 1 2 3 7 chunks +88 lines, -71 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
r.kasibhatla
PTAL.
7 years, 2 months ago (2013-10-21 14:31:44 UTC) #1
Dirk Pranke
I very much like the idea of getting rid of this hack, but I think ...
7 years, 2 months ago (2013-10-21 18:53:31 UTC) #2
r.kasibhatla
On 2013/10/21 18:53:31, Dirk Pranke wrote: > I very much like the idea of getting ...
7 years, 2 months ago (2013-10-21 19:59:08 UTC) #3
Dirk Pranke
On Mon, Oct 21, 2013 at 12:59 PM, <r.kasibhatla@samsung.com> wrote: > On 2013/10/21 18:53:31, Dirk ...
7 years, 2 months ago (2013-10-21 22:11:27 UTC) #4
r.kasibhatla
On 2013/10/21 22:11:27, Dirk Pranke wrote: > On Mon, Oct 21, 2013 at 12:59 PM, ...
7 years, 2 months ago (2013-10-22 14:27:31 UTC) #5
Dirk Pranke
This is okay (lgtm); it's definitely a step in the right direction. It shouldn't be ...
7 years, 2 months ago (2013-10-22 19:17:02 UTC) #6
r.kasibhatla
On 2013/10/22 19:17:02, Dirk Pranke wrote: > This is okay (lgtm); it's definitely a step ...
7 years, 2 months ago (2013-10-22 21:56:12 UTC) #7
Dirk Pranke
On 2013/10/22 21:56:12, r.kasibhatla wrote: > > Can you throw your idea? > I'm not ...
7 years, 2 months ago (2013-10-22 22:16:29 UTC) #8
r.kasibhatla
On 2013/10/22 22:16:29, Dirk Pranke wrote: > On 2013/10/22 21:56:12, r.kasibhatla wrote: > > > ...
7 years, 2 months ago (2013-10-23 04:44:09 UTC) #9
r.kasibhatla
Corrected the summary of the change. Can somebody stamp the changes.
7 years, 2 months ago (2013-10-23 07:49:39 UTC) #10
Dirk Pranke
still lgtm. https://codereview.chromium.org/32663002/diff/140001/Tools/Scripts/webkitpy/style/checkers/cpp.py File Tools/Scripts/webkitpy/style/checkers/cpp.py (right): https://codereview.chromium.org/32663002/diff/140001/Tools/Scripts/webkitpy/style/checkers/cpp.py#newcode4019 Tools/Scripts/webkitpy/style/checkers/cpp.py:4019: CppChecker.fs = fs or FileSystem() Note that ...
7 years, 2 months ago (2013-10-23 17:42:51 UTC) #11
Dirk Pranke
On 2013/10/23 04:44:09, r.kasibhatla wrote: > I thought of passing all the way to the ...
7 years, 2 months ago (2013-10-23 17:44:28 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/r.kasibhatla@samsung.com/32663002/140001
7 years, 2 months ago (2013-10-23 18:11:40 UTC) #13
commit-bot: I haz the power
7 years, 2 months ago (2013-10-23 19:31:31 UTC) #14
Message was sent while issue was closed.
Change committed as 160363

Powered by Google App Engine
This is Rietveld 408576698