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

Unified Diff: third_party/WebKit/Source/platform/text/BidiResolverTest.cpp

Issue 2811453002: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in platform/text (Closed)
Patch Set: fix Created 3 years, 8 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/platform/text/BidiResolverTest.cpp
diff --git a/third_party/WebKit/Source/platform/text/BidiResolverTest.cpp b/third_party/WebKit/Source/platform/text/BidiResolverTest.cpp
index ccc086173759d29df26ec733026dba519b884664..62eea87d7d9332a11e74781b8baa3a849f9f0b9f 100644
--- a/third_party/WebKit/Source/platform/text/BidiResolverTest.cpp
+++ b/third_party/WebKit/Source/platform/text/BidiResolverTest.cpp
@@ -216,7 +216,7 @@ void BidiTestRunner::RunTest(const std::basic_string<UChar>& input,
// Blink's UBA just makes runs, the actual ordering of the display of
// characters is handled later in our pipeline, so we fake it here:
bool reversed = run->Reversed(false);
- ASSERT(run->Stop() >= run->Start());
+ DCHECK_GE(run->Stop(), run->Start());
size_t length = run->Stop() - run->Start();
for (size_t i = 0; i < length; i++) {
int input_index = reversed ? run->Stop() - i - 1 : run->Start() + i;
« no previous file with comments | « third_party/WebKit/Source/platform/text/BidiResolver.h ('k') | third_party/WebKit/Source/platform/text/BidiRunList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698