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

Side by Side Diff: test/cctest/test-liveedit.cc

Issue 2452403003: Changed statement ZoneList to a ZoneChunkList
Patch Set: Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « src/zone/zone-containers.h ('k') | test/cctest/test-parsing.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2007-2008 the V8 project authors. All rights reserved. 1 // Copyright 2007-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 } 50 }
51 bool Equals(int index1, int index2) { 51 bool Equals(int index1, int index2) {
52 return s1_[index1] == s2_[index2]; 52 return s1_[index1] == s2_[index2];
53 } 53 }
54 54
55 private: 55 private:
56 const char* s1_; 56 const char* s1_;
57 const char* s2_; 57 const char* s2_;
58 }; 58 };
59 59
60
61 class DiffChunkStruct : public ZoneObject { 60 class DiffChunkStruct : public ZoneObject {
62 public: 61 public:
63 DiffChunkStruct(int pos1_param, int pos2_param, 62 DiffChunkStruct(int pos1_param, int pos2_param,
64 int len1_param, int len2_param) 63 int len1_param, int len2_param)
65 : pos1(pos1_param), pos2(pos2_param), 64 : pos1(pos1_param), pos2(pos2_param),
66 len1(len1_param), len2(len2_param), next(NULL) {} 65 len1(len1_param), len2(len2_param), next(NULL) {}
67 int pos1; 66 int pos1;
68 int pos2; 67 int pos2;
69 int len1; 68 int len1;
70 int len2; 69 int len2;
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 CompareStrings("cat", "cut", 2); 167 CompareStrings("cat", "cut", 2);
169 CompareStrings("ct", "cut", 1); 168 CompareStrings("ct", "cut", 1);
170 CompareStrings("cat", "ct", 1); 169 CompareStrings("cat", "ct", 1);
171 CompareStrings("cat", "cat", 0); 170 CompareStrings("cat", "cat", 0);
172 CompareStrings("", "", 0); 171 CompareStrings("", "", 0);
173 CompareStrings("cat", "", 3); 172 CompareStrings("cat", "", 3);
174 CompareStrings("a cat", "a capybara", 7); 173 CompareStrings("a cat", "a capybara", 7);
175 CompareStrings("abbabababababaaabbabababababbabbbbbbbababa", 174 CompareStrings("abbabababababaaabbabababababbabbbbbbbababa",
176 "bbbbabababbbabababbbabababababbabbababa"); 175 "bbbbabababbbabababbbabababababbabbababa");
177 } 176 }
OLDNEW
« no previous file with comments | « src/zone/zone-containers.h ('k') | test/cctest/test-parsing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698