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

Side by Side Diff: content/renderer/media/render_media_log_unittest.cc

Issue 1547073003: Switch to standard integer types in content/renderer/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 months 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
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/renderer/media/render_media_log.h ('k') | content/renderer/media/renderer_gpu_video_accelerator_factories.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698