OLD | NEW |
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 #include "base/logging.h" | 5 #include "base/logging.h" |
6 #include "base/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
7 #include "base/time.h" | 7 #include "base/time/time.h" |
8 #include "media/base/data_buffer.h" | 8 #include "media/base/data_buffer.h" |
9 #include "media/base/seekable_buffer.h" | 9 #include "media/base/seekable_buffer.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
11 | 11 |
12 namespace media { | 12 namespace media { |
13 | 13 |
14 class SeekableBufferTest : public testing::Test { | 14 class SeekableBufferTest : public testing::Test { |
15 public: | 15 public: |
16 SeekableBufferTest() : buffer_(kBufferSize, kBufferSize) { | 16 SeekableBufferTest() : buffer_(kBufferSize, kBufferSize) { |
17 } | 17 } |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 EXPECT_EQ(tests[i].expected_time, actual) << "With test = { start:" | 343 EXPECT_EQ(tests[i].expected_time, actual) << "With test = { start:" |
344 << tests[i].first_time_useconds << ", duration:" | 344 << tests[i].first_time_useconds << ", duration:" |
345 << tests[i].duration_useconds << ", consumed:" | 345 << tests[i].duration_useconds << ", consumed:" |
346 << tests[i].consume_bytes << " }\n"; | 346 << tests[i].consume_bytes << " }\n"; |
347 | 347 |
348 buffer_.Clear(); | 348 buffer_.Clear(); |
349 } | 349 } |
350 } | 350 } |
351 | 351 |
352 } // namespace media | 352 } // namespace media |
OLD | NEW |