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

Unified Diff: tests/patches_data.py

Issue 8066012: Share more data between checkout_test and patches_data. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 9 years, 3 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 | « tests/patch_test.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/patches_data.py
diff --git a/tests/patches_data.py b/tests/patches_data.py
index 00814da84434897cdc216bb70bd045a583c09d1d..eac2fed480ab04bf6012ac72eab55612b20dca4b 100644
--- a/tests/patches_data.py
+++ b/tests/patches_data.py
@@ -11,15 +11,14 @@ class RAW(object):
'===================================================================\n'
'--- chrome/file.cc\t(revision 74690)\n'
'+++ chrome/file.cc\t(working copy)\n'
- '@@ -80,10 +80,13 @@\n'
- ' // Foo\n'
- ' // Bar\n'
- ' void foo() {\n'
- '- return bar;\n'
- '+ return foo;\n'
- ' }\n'
- ' \n'
- ' \n')
+ '@@ -3,6 +3,7 @@ bb\n'
+ ' ccc\n'
+ ' dd\n'
+ ' e\n'
+ '+FOO!\n'
+ ' ff\n'
+ ' ggg\n'
+ ' hh\n')
NEW = (
'--- /dev/null\n'
@@ -171,6 +170,16 @@ class GIT(object):
'@@ -0,0 +1,1 @@\n'
'+#!/usr/bin/env python\n')
+ # To make sure the subdirectory was created as needed.
+ NEW_SUBDIR = (
+ 'diff --git a/new_dir/subdir/new_file b/new_dir/subdir/new_file\n'
+ 'new file mode 100644\n'
+ '--- /dev/null\n'
+ '+++ b/new_dir/subdir/new_file\n'
+ '@@ -0,0 +1,2 @@\n'
+ '+A new file\n'
+ '+should exist.\n')
+
NEW_MODE = (
'diff --git a/natsort_test.py b/natsort_test.py\n'
'new file mode 100644\n'
« no previous file with comments | « tests/patch_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698