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

Unified Diff: third_party/WebKit/Source/core/html/TimeRangesTest.cpp

Issue 2615953003: Rename IGNORE_EXCEPTION to IGNORE_EXCEPTION_FOR_TESTING (Closed)
Patch Set: temp Created 3 years, 11 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
Index: third_party/WebKit/Source/core/html/TimeRangesTest.cpp
diff --git a/third_party/WebKit/Source/core/html/TimeRangesTest.cpp b/third_party/WebKit/Source/core/html/TimeRangesTest.cpp
index 3dc9c36b16bcdc78f43fb79b9881848186e732d1..bace4f60dd162fbf283ea1234d2d3ce473a68e0f 100644
--- a/third_party/WebKit/Source/core/html/TimeRangesTest.cpp
+++ b/third_party/WebKit/Source/core/html/TimeRangesTest.cpp
@@ -39,9 +39,10 @@ namespace blink {
static std::string ToString(const TimeRanges& ranges) {
std::stringstream ss;
ss << "{";
- for (unsigned i = 0; i < ranges.length(); ++i)
- ss << " [" << ranges.start(i, IGNORE_EXCEPTION) << ","
- << ranges.end(i, IGNORE_EXCEPTION) << ")";
+ for (unsigned i = 0; i < ranges.length(); ++i) {
+ ss << " [" << ranges.start(i, IGNORE_EXCEPTION_FOR_TESTING) << ","
+ << ranges.end(i, IGNORE_EXCEPTION_FOR_TESTING) << ")";
+ }
ss << " }";
return ss.str();
@@ -78,9 +79,10 @@ TEST(TimeRangesTest, AddOrder) {
ASSERT_RANGE(expected, rangeA);
// Add the values in rangeA to rangeB in reverse order.
- for (int i = rangeA->length() - 1; i >= 0; --i)
- rangeB->add(rangeA->start(i, IGNORE_EXCEPTION),
- rangeA->end(i, IGNORE_EXCEPTION));
+ for (int i = rangeA->length() - 1; i >= 0; --i) {
+ rangeB->add(rangeA->start(i, IGNORE_EXCEPTION_FOR_TESTING),
+ rangeA->end(i, IGNORE_EXCEPTION_FOR_TESTING));
+ }
ASSERT_RANGE(expected, rangeB);
}
« no previous file with comments | « third_party/WebKit/Source/core/html/TimeRanges.cpp ('k') | third_party/WebKit/Source/core/html/forms/InputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698