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

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

Issue 23534067: bulk replace Isolate::Current in tests (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « test/cctest/test-heap-profiler.cc ('k') | test/cctest/test-log.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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 DiffChunkStruct** next_chunk_pointer_; 90 DiffChunkStruct** next_chunk_pointer_;
91 DiffChunkStruct* current_chunk_; 91 DiffChunkStruct* current_chunk_;
92 Zone* zone_; 92 Zone* zone_;
93 }; 93 };
94 94
95 95
96 void CompareStringsOneWay(const char* s1, const char* s2, 96 void CompareStringsOneWay(const char* s1, const char* s2,
97 int expected_diff_parameter = -1) { 97 int expected_diff_parameter = -1) {
98 StringCompareInput input(s1, s2); 98 StringCompareInput input(s1, s2);
99 99
100 Zone zone(Isolate::Current()); 100 Zone zone(CcTest::i_isolate());
101 101
102 DiffChunkStruct* first_chunk; 102 DiffChunkStruct* first_chunk;
103 ListDiffOutputWriter writer(&first_chunk, &zone); 103 ListDiffOutputWriter writer(&first_chunk, &zone);
104 104
105 Comparator::CalculateDifference(&input, &writer); 105 Comparator::CalculateDifference(&input, &writer);
106 106
107 int len1 = StrLength(s1); 107 int len1 = StrLength(s1);
108 int len2 = StrLength(s2); 108 int len2 = StrLength(s2);
109 109
110 int pos1 = 0; 110 int pos1 = 0;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 CompareStrings("cat", "ct", 1); 172 CompareStrings("cat", "ct", 1);
173 CompareStrings("cat", "cat", 0); 173 CompareStrings("cat", "cat", 0);
174 CompareStrings("", "", 0); 174 CompareStrings("", "", 0);
175 CompareStrings("cat", "", 3); 175 CompareStrings("cat", "", 3);
176 CompareStrings("a cat", "a capybara", 7); 176 CompareStrings("a cat", "a capybara", 7);
177 CompareStrings("abbabababababaaabbabababababbabbbbbbbababa", 177 CompareStrings("abbabababababaaabbabababababbabbbbbbbababa",
178 "bbbbabababbbabababbbabababababbabbababa"); 178 "bbbbabababbbabababbbabababababbabbababa");
179 } 179 }
180 180
181 #endif // ENABLE_DEBUGGER_SUPPORT 181 #endif // ENABLE_DEBUGGER_SUPPORT
OLDNEW
« no previous file with comments | « test/cctest/test-heap-profiler.cc ('k') | test/cctest/test-log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698