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

Side by Side Diff: media/base/mock_filters.cc

Issue 2070753002: media: Add unittest for MojoRenderer{Impl|Service} (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix visibility :( Created 4 years, 6 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
« no previous file with comments | « media/base/mock_filters.h ('k') | media/mojo/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "media/base/mock_filters.h" 5 #include "media/base/mock_filters.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 using ::testing::_; 9 using ::testing::_;
10 using ::testing::Invoke; 10 using ::testing::Invoke;
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
129 MockDecryptor::MockDecryptor() {} 129 MockDecryptor::MockDecryptor() {}
130 130
131 MockDecryptor::~MockDecryptor() {} 131 MockDecryptor::~MockDecryptor() {}
132 132
133 MockCdmContext::MockCdmContext() {} 133 MockCdmContext::MockCdmContext() {}
134 134
135 MockCdmContext::~MockCdmContext() {} 135 MockCdmContext::~MockCdmContext() {}
136 136
137 int MockCdmContext::GetCdmId() const { 137 int MockCdmContext::GetCdmId() const {
138 return CdmContext::kInvalidCdmId; 138 return cdm_id_;
139 }
140
141 void MockCdmContext::set_cdm_id(int cdm_id) {
142 cdm_id_ = cdm_id;
139 } 143 }
140 144
141 } // namespace media 145 } // namespace media
OLDNEW
« no previous file with comments | « media/base/mock_filters.h ('k') | media/mojo/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698