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

Unified Diff: testing_support/patches_data.py

Issue 9387024: Fix unicode upgrade of patch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Add more test Created 8 years, 10 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 | « patch.py ('k') | tests/patch_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing_support/patches_data.py
diff --git a/testing_support/patches_data.py b/testing_support/patches_data.py
index 4a9534376ae8ece35e9d5b58122eb42ee821f8bc..ce94170de8b4f854ae0cce9b8241c0cae8f0e549 100644
--- a/testing_support/patches_data.py
+++ b/testing_support/patches_data.py
@@ -1,3 +1,4 @@
+# coding: utf-8
# 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.
@@ -122,6 +123,18 @@ class RAW(object):
'-{"traces": {"1t_proc": ["2.0", "0.0"], "1t_proc_ref": ["1.0", ...\n'
'+{"traces": {"1t_proc": ["2.0", "0.0"], "1t_proc_ref": ["1.0", ...\n')
+ RENAME_UTF8 = (
+ u'--- file_à\n'
+ u'+++ filé_b\n'
+ u'@@ -3,6 +3,7 @@ bb\n'
+ u' ccc\n'
+ u' ddé\n'
+ u' e\n'
+ u'+FÔÒ!\n'
+ u' ff\n'
+ u' ggg\n'
+ u' hh\n').encode('utf-8')
+
class GIT(object):
"""Sample patches generated by git diff."""
« no previous file with comments | « patch.py ('k') | tests/patch_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698