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

Unified Diff: testing/generate_gmock_mutant.py

Issue 9625014: Add pylint presubmit check to src/testing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | « testing/PRESUBMIT.py ('k') | testing/pylintrc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/generate_gmock_mutant.py
diff --git a/testing/generate_gmock_mutant.py b/testing/generate_gmock_mutant.py
index bd870b50b9f758d9edd0f77542aca822402d5109..5920b52374b60b351ff0443a540721d7476ffab0 100755
--- a/testing/generate_gmock_mutant.py
+++ b/testing/generate_gmock_mutant.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python
-# Copyright (c) 2011 The Chromium Authors. All rights reserved.
+# Copyright (c) 2012 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.
@@ -425,11 +425,11 @@ def GenerateCreateFunctor(prebound, calltime):
print stdcall_method
# Functor for free function with __stdcall calling conventions.
stdcall_function = CREATE_FUNCTION_FUNCTOR_TEMPLATE
- stdcall_function = stdcall_function.replace("R (*", "R (__stdcall *");
+ stdcall_function = stdcall_function.replace("R (*", "R (__stdcall *")
print "\n", FixCode(stdcall_function % args)
print "#ifdef GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING"
- stdcall2 = stdcall_method;
+ stdcall2 = stdcall_method
stdcall2 = stdcall2.replace("CreateFunctor(T* obj,", "CreateFunctor(T** obj,")
stdcall2 = stdcall2.replace("new Mutant", "new MutantLateObjectBind")
stdcall2 = stdcall2.replace(" " * 17 + "Tuple", " " * 31 + "Tuple")
« no previous file with comments | « testing/PRESUBMIT.py ('k') | testing/pylintrc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698