Reformat the WebRTC code base
Running clang-format with chromium's style guide. The goal is n-fold: * providing consistency and readability (that's what code guidelines are for) * preventing noise with presubmit checks and git cl format * building on the previous point: making it easier to automatically fix format issues * you name it Please consider using git-hyper-blame to ignore this commit. Bug: webrtc:9340 Change-Id: I694567c4cdf8cee2860958cfe82bfaf25848bb87 Reviewed-on: https://webrtc-review.googlesource.com/81185 Reviewed-by: Patrik Höglund <phoglund@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23660}
This commit is contained in:
@ -39,7 +39,7 @@ int ExpandProcess120ms(AudioMultiVector* output) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
TEST(Normal, CreateAndDestroy) {
|
||||
MockDecoderDatabase db;
|
||||
@ -84,10 +84,7 @@ TEST(Normal, AvoidDivideByZero) {
|
||||
// and using this as a denominator would lead to problems.
|
||||
int input_size_samples = 63;
|
||||
EXPECT_EQ(input_size_samples,
|
||||
normal.Process(input,
|
||||
input_size_samples,
|
||||
kModeExpand,
|
||||
&output));
|
||||
normal.Process(input, input_size_samples, kModeExpand, &output));
|
||||
|
||||
EXPECT_CALL(db, Die()); // Called when |db| goes out of scope.
|
||||
EXPECT_CALL(expand, Die()); // Called when |expand| goes out of scope.
|
||||
@ -139,10 +136,7 @@ TEST(Normal, LastModeExpand120msPacket) {
|
||||
EXPECT_CALL(expand, Process(_)).WillOnce(Invoke(ExpandProcess120ms));
|
||||
EXPECT_CALL(expand, Reset());
|
||||
EXPECT_EQ(static_cast<int>(kPacketsizeBytes),
|
||||
normal.Process(input,
|
||||
kPacketsizeBytes,
|
||||
kModeExpand,
|
||||
&output));
|
||||
normal.Process(input, kPacketsizeBytes, kModeExpand, &output));
|
||||
|
||||
EXPECT_EQ(kPacketsizeBytes, output.Size());
|
||||
|
||||
|
Reference in New Issue
Block a user