Concatenate string literals at compile time.
This CL was generated by running:
git ls-files | grep ".cc" | xargs perl -i -ne 'BEGIN {undef $/}; s/("[\s\n]*<<[\s\n]*")/" "/g; print;'; git cl format
After that I manually edited modules/audio_processing/gain_controller2.cc to preserve its original
formatting.
This primary benefit of this change is a small reduction in binary size.
Bug: None
Change-Id: I689fa7ba9c717c314bb167e5d592c3c4e0871e29
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/165961
Reviewed-by: Alessio Bazzica <alessiob@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Commit-Queue: Jonas Olsson <jonasolsson@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#30251}
diff --git a/pc/webrtc_sdp_unittest.cc b/pc/webrtc_sdp_unittest.cc
index e8e937a..5bb4ffc 100644
--- a/pc/webrtc_sdp_unittest.cc
+++ b/pc/webrtc_sdp_unittest.cc
@@ -1963,18 +1963,22 @@
os << "minptime=" << params.min_ptime << "; stereo=" << params.stereo
<< "; sprop-stereo=" << params.sprop_stereo
<< "; useinbandfec=" << params.useinband
- << "; maxaveragebitrate=" << params.maxaveragebitrate << "\r\n"
- << "a=ptime:" << params.ptime << "\r\n"
- << "a=maxptime:" << params.max_ptime << "\r\n";
+ << "; maxaveragebitrate=" << params.maxaveragebitrate
+ << "\r\n"
+ "a=ptime:"
+ << params.ptime
+ << "\r\n"
+ "a=maxptime:"
+ << params.max_ptime << "\r\n";
sdp += os.str();
os.clear();
os.str("");
// Pl type 100 preferred.
os << "m=video 9 RTP/SAVPF 99 95\r\n"
- << "a=rtpmap:99 VP8/90000\r\n"
- << "a=rtpmap:95 RTX/90000\r\n"
- << "a=fmtp:95 apt=99;\r\n";
+ "a=rtpmap:99 VP8/90000\r\n"
+ "a=rtpmap:95 RTX/90000\r\n"
+ "a=fmtp:95 apt=99;\r\n";
sdp += os.str();
// Deserialize
@@ -2118,8 +2122,11 @@
}
EXPECT_EQ(0, position) << "Strings mismatch at the " << position
<< " character\n"
- << " 1: " << string1.substr(position, 20) << "\n"
- << " 2: " << string2.substr(position, 20) << "\n";
+ " 1: "
+ << string1.substr(position, 20)
+ << "\n"
+ " 2: "
+ << string2.substr(position, 20) << "\n";
}
TEST_F(WebRtcSdpTest, SerializeSessionDescription) {