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

Unified Diff: third_party/WebKit/Source/modules/speech/testing/PlatformSpeechSynthesizerMock.cpp

Issue 2862963003: Replace ASSERT with DCHECK in modules/ (Closed)
Patch Set: NOTREACHED instead of DCHECK(false) Created 3 years, 7 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/modules/speech/testing/PlatformSpeechSynthesizerMock.cpp
diff --git a/third_party/WebKit/Source/modules/speech/testing/PlatformSpeechSynthesizerMock.cpp b/third_party/WebKit/Source/modules/speech/testing/PlatformSpeechSynthesizerMock.cpp
index e30b1a6734dbcd163647ee8935d6d97f53a3a115..d5feafba42b399a094f6bc8c4dcdefa02b01f29e 100644
--- a/third_party/WebKit/Source/modules/speech/testing/PlatformSpeechSynthesizerMock.cpp
+++ b/third_party/WebKit/Source/modules/speech/testing/PlatformSpeechSynthesizerMock.cpp
@@ -51,14 +51,14 @@ PlatformSpeechSynthesizerMock::PlatformSpeechSynthesizerMock(
PlatformSpeechSynthesizerMock::~PlatformSpeechSynthesizerMock() {}
void PlatformSpeechSynthesizerMock::SpeakingErrorOccurred(TimerBase*) {
- ASSERT(current_utterance_);
+ DCHECK(current_utterance_);
Client()->SpeakingErrorOccurred(current_utterance_);
SpeakNext();
}
void PlatformSpeechSynthesizerMock::SpeakingFinished(TimerBase*) {
- ASSERT(current_utterance_);
+ DCHECK(current_utterance_);
Client()->DidFinishSpeaking(current_utterance_);
SpeakNext();
}
@@ -99,7 +99,7 @@ void PlatformSpeechSynthesizerMock::Speak(
}
void PlatformSpeechSynthesizerMock::SpeakNow() {
- ASSERT(current_utterance_);
+ DCHECK(current_utterance_);
Client()->DidStartSpeaking(current_utterance_);
// Fire a fake word and then sentence boundary event.

Powered by Google App Engine
This is Rietveld 408576698