OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "base/test/simple_test_tick_clock.h" | 6 #include "base/test/simple_test_tick_clock.h" |
6 #include "base/test/test_mock_time_task_runner.h" | 7 #include "base/test/test_mock_time_task_runner.h" |
7 #include "content/common/view_messages.h" | 8 #include "content/common/view_messages.h" |
8 #include "content/public/test/mock_render_thread.h" | 9 #include "content/public/test/mock_render_thread.h" |
9 #include "content/renderer/media/render_media_log.h" | 10 #include "content/renderer/media/render_media_log.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
11 | 12 |
12 namespace content { | 13 namespace content { |
13 | 14 |
14 class RenderMediaLogTest : public testing::Test { | 15 class RenderMediaLogTest : public testing::Test { |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 // Verify contents. There should only be a single buffered extents changed | 115 // Verify contents. There should only be a single buffered extents changed |
115 // event. | 116 // event. |
116 std::vector<media::MediaLogEvent> events = GetMediaLogEvents(); | 117 std::vector<media::MediaLogEvent> events = GetMediaLogEvents(); |
117 ASSERT_EQ(3u, events.size()); | 118 ASSERT_EQ(3u, events.size()); |
118 EXPECT_EQ(media::MediaLogEvent::LOAD, events[0].type); | 119 EXPECT_EQ(media::MediaLogEvent::LOAD, events[0].type); |
119 EXPECT_EQ(media::MediaLogEvent::SEEK, events[1].type); | 120 EXPECT_EQ(media::MediaLogEvent::SEEK, events[1].type); |
120 EXPECT_EQ(media::MediaLogEvent::BUFFERED_EXTENTS_CHANGED, events[2].type); | 121 EXPECT_EQ(media::MediaLogEvent::BUFFERED_EXTENTS_CHANGED, events[2].type); |
121 } | 122 } |
122 | 123 |
123 } // namespace content | 124 } // namespace content |
OLD | NEW |