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

Side by Side Diff: media/base/audio_fifo_unittest.cc

Issue 661163004: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « media/base/audio_bus_unittest.cc ('k') | media/base/audio_hash_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // TODO(henrika): add test which included |start_frame| in Consume() call. 5 // TODO(henrika): add test which included |start_frame| in Consume() call.
6 6
7 #include "media/base/audio_fifo.h" 7 #include "media/base/audio_fifo.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 9
10 namespace media { 10 namespace media {
11 11
12 class AudioFifoTest : public testing::Test { 12 class AudioFifoTest : public testing::Test {
13 public: 13 public:
14 AudioFifoTest() {} 14 AudioFifoTest() {}
15 virtual ~AudioFifoTest() {} 15 ~AudioFifoTest() override {}
16 16
17 void VerifyValue(const float data[], int size, float value) { 17 void VerifyValue(const float data[], int size, float value) {
18 for (int i = 0; i < size; ++i) 18 for (int i = 0; i < size; ++i)
19 ASSERT_FLOAT_EQ(value, data[i]) << "i=" << i; 19 ASSERT_FLOAT_EQ(value, data[i]) << "i=" << i;
20 } 20 }
21 21
22 protected: 22 protected:
23 DISALLOW_COPY_AND_ASSIGN(AudioFifoTest); 23 DISALLOW_COPY_AND_ASSIGN(AudioFifoTest);
24 }; 24 };
25 25
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 VerifyValue(bus->channel(j), bus->channels(), value); 185 VerifyValue(bus->channel(j), bus->channels(), value);
186 std::fill(bus->channel(j), bus->channel(j) + bus->frames(), value + 1); 186 std::fill(bus->channel(j), bus->channel(j) + bus->frames(), value + 1);
187 } 187 }
188 fifo.Push(bus.get()); 188 fifo.Push(bus.get());
189 EXPECT_EQ(fifo.frames(), bus->frames()); 189 EXPECT_EQ(fifo.frames(), bus->frames());
190 ++value; 190 ++value;
191 } 191 }
192 } 192 }
193 193
194 } // namespace media 194 } // namespace media
OLDNEW
« no previous file with comments | « media/base/audio_bus_unittest.cc ('k') | media/base/audio_hash_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698