| OLD | NEW |
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 """Samples patches to test patch.py.""" | 5 """Samples patches to test patch.py.""" |
| 6 | 6 |
| 7 | 7 |
| 8 class RAW(object): | 8 class RAW(object): |
| 9 PATCH = ( | 9 PATCH = ( |
| 10 'Index: chrome/file.cc\n' | 10 'Index: chrome/file.cc\n' |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 DELETE = ( | 48 DELETE = ( |
| 49 '--- tools/clang_check/README.chromium\n' | 49 '--- tools/clang_check/README.chromium\n' |
| 50 '+++ /dev/null\n' | 50 '+++ /dev/null\n' |
| 51 '@@ -1,1 +0,0 @@\n' | 51 '@@ -1,1 +0,0 @@\n' |
| 52 '-bar\n') | 52 '-bar\n') |
| 53 | 53 |
| 54 MINIMAL_DELETE = ( | 54 MINIMAL_DELETE = ( |
| 55 '--- chrome/file.cc\tbar\n' | 55 '--- chrome/file.cc\tbar\n' |
| 56 '+++ /dev/null\tfoo\n') | 56 '+++ /dev/null\tfoo\n') |
| 57 | 57 |
| 58 # http://codereview.chromium.org/api/7530007/5001 |
| 59 # http://codereview.chromium.org/download/issue7530007_5001_4011.diff |
| 60 CRAP_ONLY = ( |
| 61 'Index: scripts/master/factory/skia/__init__.py\n' |
| 62 '===================================================================\n') |
| 63 |
| 58 | 64 |
| 59 class GIT(object): | 65 class GIT(object): |
| 60 """Sample patches generated by git diff.""" | 66 """Sample patches generated by git diff.""" |
| 61 PATCH = ( | 67 PATCH = ( |
| 62 'diff --git a/chrome/file.cc b/chrome/file.cc\n' | 68 'diff --git a/chrome/file.cc b/chrome/file.cc\n' |
| 63 'index 0e4de76..8320059 100644\n' | 69 'index 0e4de76..8320059 100644\n' |
| 64 '--- a/chrome/file.cc\n' | 70 '--- a/chrome/file.cc\n' |
| 65 '+++ b/chrome/file.cc\n' | 71 '+++ b/chrome/file.cc\n' |
| 66 '@@ -3,6 +3,7 @@ bb\n' | 72 '@@ -3,6 +3,7 @@ bb\n' |
| 67 ' ccc\n' | 73 ' ccc\n' |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 MODE_EXE = ( | 182 MODE_EXE = ( |
| 177 'diff --git a/git_cl/git-cl b/git_cl/git-cl\n' | 183 'diff --git a/git_cl/git-cl b/git_cl/git-cl\n' |
| 178 'old mode 100644\n' | 184 'old mode 100644\n' |
| 179 'new mode 100755\n') | 185 'new mode 100755\n') |
| 180 | 186 |
| 181 MODE_EXE_JUNK = ( | 187 MODE_EXE_JUNK = ( |
| 182 'Index: Junk\n' | 188 'Index: Junk\n' |
| 183 'diff --git a/git_cl/git-cl b/git_cl/git-cl\n' | 189 'diff --git a/git_cl/git-cl b/git_cl/git-cl\n' |
| 184 'old mode 100644\n' | 190 'old mode 100644\n' |
| 185 'new mode 100755\n') | 191 'new mode 100755\n') |
| OLD | NEW |