Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Issue 14317011: Allow test files to use non-platform suffixes for PRESUBMIT checks. (Closed)

Created:
7 years, 8 months ago by danakj
Modified:
7 years, 8 months ago
Reviewers:
M-A Ruel
CC:
chromium-reviews, cc-bugs_chromium.org, backer, enne (OOO), jamesr, piman
Visibility:
Public.

Description

Allow test files to use non-platform suffixes for PRESUBMIT checks. The current check for deciding if a file is a unittest allows a strict whitelist of platforms as suffixes. However, when a unittest file becomes too large, it is useful to split it on other axes than by platform. This allows a _suffix for a topic to be used without failing production-only presubmit checks. In other words, it considers foo_bar_unittest_baz.cc to be a unittest. There are many examples of foo_unittest_utils.cc which are used only by unit tests throughout chromium, but they have been lucky to avoid using FunctionForTesting type functions. In cc/ we have run into this problem, so allowing our unittests to be considered non-production code prevents false positive warnings about our test files. NOTRY=true [email protected] BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=195780

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -6 lines) Patch
M PRESUBMIT.py View 2 chunks +2 lines, -6 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
danakj
7 years, 8 months ago (2013-04-23 02:51:11 UTC) #1
M-A Ruel
lgtm
7 years, 8 months ago (2013-04-23 12:56:32 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/14317011/2001
7 years, 8 months ago (2013-04-23 12:56:57 UTC) #3
commit-bot: I haz the power
7 years, 8 months ago (2013-04-23 12:57:13 UTC) #4
Message was sent while issue was closed.
Change committed as 195780

Powered by Google App Engine
This is Rietveld 408576698