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

Unified Diff: third_party/WebKit/Source/modules/peerconnection/RTCDataChannelTest.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/modules/peerconnection/RTCDataChannelTest.cpp
diff --git a/third_party/WebKit/Source/modules/peerconnection/RTCDataChannelTest.cpp b/third_party/WebKit/Source/modules/peerconnection/RTCDataChannelTest.cpp
index 37913dc64520ef093133cc733bb773f19dc942bd..e391c5bf669089d44c736d917198e990782c8e77 100644
--- a/third_party/WebKit/Source/modules/peerconnection/RTCDataChannelTest.cpp
+++ b/third_party/WebKit/Source/modules/peerconnection/RTCDataChannelTest.cpp
@@ -79,7 +79,7 @@ TEST(RTCDataChannelTest, BufferedAmount) {
handler->changeState(WebRTCDataChannelHandlerClient::ReadyStateOpen);
String message(std::string(100, 'A').c_str());
- channel->send(message, IGNORE_EXCEPTION);
+ channel->send(message, IGNORE_EXCEPTION_FOR_TESTING);
EXPECT_EQ(100U, channel->bufferedAmount());
}
@@ -90,7 +90,7 @@ TEST(RTCDataChannelTest, BufferedAmountLow) {
// Add and drain 100 bytes
handler->changeState(WebRTCDataChannelHandlerClient::ReadyStateOpen);
String message(std::string(100, 'A').c_str());
- channel->send(message, IGNORE_EXCEPTION);
+ channel->send(message, IGNORE_EXCEPTION_FOR_TESTING);
EXPECT_EQ(100U, channel->bufferedAmount());
EXPECT_EQ(1U, channel->m_scheduledEvents.size());
@@ -102,7 +102,7 @@ TEST(RTCDataChannelTest, BufferedAmountLow) {
std::string(channel->m_scheduledEvents.back()->type().utf8().data()));
// Add and drain 1 byte
- channel->send("A", IGNORE_EXCEPTION);
+ channel->send("A", IGNORE_EXCEPTION_FOR_TESTING);
EXPECT_EQ(1U, channel->bufferedAmount());
EXPECT_EQ(2U, channel->m_scheduledEvents.size());
@@ -115,10 +115,10 @@ TEST(RTCDataChannelTest, BufferedAmountLow) {
// Set the threshold to 99 bytes, add 101, and drain 1 byte at a time.
channel->setBufferedAmountLowThreshold(99U);
- channel->send(message, IGNORE_EXCEPTION);
+ channel->send(message, IGNORE_EXCEPTION_FOR_TESTING);
EXPECT_EQ(100U, channel->bufferedAmount());
- channel->send("A", IGNORE_EXCEPTION);
+ channel->send("A", IGNORE_EXCEPTION_FOR_TESTING);
EXPECT_EQ(101U, channel->bufferedAmount());
handler->drainBuffer(1);

Powered by Google App Engine
This is Rietveld 408576698