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

Side by Side Diff: media/base/mock_media_log.h

Issue 1281113002: MSE: Warn when keyframe after track_buffer is significantly in future (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix mock media log license Created 5 years, 4 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
(Empty)
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
xhwang 2015/08/11 07:04:36 nit: s/(c)// See https://code.google.com/p/chrom
wolenetz 2015/08/11 15:54:40 Done.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MEDIA_BASE_MOCK_MEDIA_LOG_H_
6 #define MEDIA_BASE_MOCK_MEDIA_LOG_H_
7
8 #include "media/base/media_log.h"
9 #include "testing/gmock/include/gmock/gmock.h"
10
11 namespace media {
12
13 class MockMediaLog : public MediaLog {
14 public:
15 MockMediaLog();
16
17 MOCK_METHOD1(DoAddEventLogString, void(std::string event));
xhwang 2015/08/11 07:04:36 nit: const std::string&
wolenetz 2015/08/11 15:54:40 Done.
18
19 // Trampoline method to workaround GMOCK problems with scoped_ptr<>.
20 // Also simplifies tests to be able to string match on the log string
21 // representation on the added event.
22 void AddEvent(scoped_ptr<MediaLogEvent> event) override {
23 DoAddEventLogString(MediaEventToLogString(*event));
24 }
25
26 protected:
27 virtual ~MockMediaLog();
28
29 private:
30 DISALLOW_COPY_AND_ASSIGN(MockMediaLog);
31 };
32
33 } // namespace media
34
35 #endif // MEDIA_BASE_MOCK_MEDIA_LOG_H_
OLDNEW
« no previous file with comments | « media/base/BUILD.gn ('k') | media/base/mock_media_log.cc » ('j') | media/base/mock_media_log.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698