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

Unified Diff: content/test/gpu/gpu_tests/gpu_test_base_unittest.py

Issue 1413883003: Add a presubmit script and pylintrc for content/test/gpu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address kbr's comments Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/test/gpu/gpu_tests/gpu_test_base.py ('k') | content/test/gpu/gpu_tests/gpu_test_expectations.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/gpu/gpu_tests/gpu_test_base_unittest.py
diff --git a/content/test/gpu/gpu_tests/gpu_test_base_unittest.py b/content/test/gpu/gpu_tests/gpu_test_base_unittest.py
index 7001f6f5dd53b5368d578d030b344051dae68972..3f50ac54dd664f168a456369d741ffa8d79170cd 100644
--- a/content/test/gpu/gpu_tests/gpu_test_base_unittest.py
+++ b/content/test/gpu/gpu_tests/gpu_test_base_unittest.py
@@ -1,18 +1,16 @@
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-import os
import unittest
-from telemetry import benchmark
+from telemetry import benchmark as benchmark_module
from telemetry.core import exceptions
-from telemetry.core import util
from telemetry.story import story_set as story_set_module
from telemetry.testing import fakes
import mock # pylint: disable=import-error
-import gpu_test_base
+from gpu_tests import gpu_test_base
# Unit tests verifying invariants of classes in GpuTestBase.
@@ -163,10 +161,10 @@ class PageExecutionTest(unittest.TestCase):
finder_options.upload_results = False
testclass = FakeTest
parser = finder_options.CreateParser()
- benchmark.AddCommandLineArgs(parser)
+ benchmark_module.AddCommandLineArgs(parser)
testclass.AddCommandLineArgs(parser)
options, dummy_args = parser.parse_args([])
- benchmark.ProcessCommandLineArgs(parser, options)
+ benchmark_module.ProcessCommandLineArgs(parser, options)
testclass.ProcessCommandLineArgs(parser, options)
test = testclass(times_to_fail_test=num_test_failures,
manager_mock=manager_mock)
« no previous file with comments | « content/test/gpu/gpu_tests/gpu_test_base.py ('k') | content/test/gpu/gpu_tests/gpu_test_expectations.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698