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

Unified Diff: media/blink/multibuffer_unittest.cc

Issue 1553623002: Remove random lonely semicolons. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix formatting Created 5 years 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: media/blink/multibuffer_unittest.cc
diff --git a/media/blink/multibuffer_unittest.cc b/media/blink/multibuffer_unittest.cc
index 63478ffda6e5cf02ab6eae0587d7b9fa40888869..1b5f76b09283fb00df73bbedb9f57fcf2730b5ae 100644
--- a/media/blink/multibuffer_unittest.cc
+++ b/media/blink/multibuffer_unittest.cc
@@ -286,8 +286,8 @@ TEST_F(MultiBufferTest, ReadAllAdvanceFirst) {
unsigned char buffer[27];
buffer[17] = 17;
size_t to_read = std::min<size_t>(end - pos, 17);
- while (AdvanceAll())
- ;
+ while (AdvanceAll()) {
+ }
int64_t bytes = reader.TryRead(buffer, to_read);
EXPECT_GT(bytes, 0);
EXPECT_EQ(buffer[17], 17);
@@ -316,8 +316,8 @@ TEST_F(MultiBufferTest, ReadAllAdvanceFirst_NeverDefer) {
unsigned char buffer[27];
buffer[17] = 17;
size_t to_read = std::min<size_t>(end - pos, 17);
- while (AdvanceAll())
- ;
+ while (AdvanceAll()) {
+ }
int64_t bytes = reader.TryRead(buffer, to_read);
EXPECT_GT(bytes, 0);
EXPECT_EQ(buffer[17], 17);
@@ -347,8 +347,8 @@ TEST_F(MultiBufferTest, ReadAllAdvanceFirst_NeverDefer2) {
unsigned char buffer[27];
buffer[17] = 17;
size_t to_read = std::min<size_t>(end - pos, 17);
- while (AdvanceAll())
- ;
+ while (AdvanceAll()) {
+ }
int64_t bytes = reader.TryRead(buffer, to_read);
EXPECT_GT(bytes, 0);
EXPECT_EQ(buffer[17], 17);
@@ -375,8 +375,8 @@ TEST_F(MultiBufferTest, LRUTest) {
// Note, no pinning, all data should end up in LRU.
EXPECT_EQ(current_size, lru_->Size());
current_size += max_size;
- while (AdvanceAll())
- ;
+ while (AdvanceAll()) {
+ }
EXPECT_EQ(current_size, lru_->Size());
lru_->IncrementMaxSize(-max_size);
lru_->Prune(3);

Powered by Google App Engine
This is Rietveld 408576698