OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/macros.h" |
5 #include "media/blink/buffered_data_source_host_impl.h" | 6 #include "media/blink/buffered_data_source_host_impl.h" |
6 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
7 | 8 |
8 namespace media { | 9 namespace media { |
9 | 10 |
10 class BufferedDataSourceHostImplTest : public testing::Test { | 11 class BufferedDataSourceHostImplTest : public testing::Test { |
11 public: | 12 public: |
12 BufferedDataSourceHostImplTest() {} | 13 BufferedDataSourceHostImplTest() {} |
13 | 14 |
14 void Add() { | 15 void Add() { |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 EXPECT_EQ(1u, ranges_.size()); | 67 EXPECT_EQ(1u, ranges_.size()); |
67 } | 68 } |
68 | 69 |
69 TEST_F(BufferedDataSourceHostImplTest, DidLoadingProgress) { | 70 TEST_F(BufferedDataSourceHostImplTest, DidLoadingProgress) { |
70 host_.AddBufferedByteRange(10, 20); | 71 host_.AddBufferedByteRange(10, 20); |
71 EXPECT_TRUE(host_.DidLoadingProgress()); | 72 EXPECT_TRUE(host_.DidLoadingProgress()); |
72 EXPECT_FALSE(host_.DidLoadingProgress()); | 73 EXPECT_FALSE(host_.DidLoadingProgress()); |
73 } | 74 } |
74 | 75 |
75 } // namespace media | 76 } // namespace media |
OLD | NEW |