OLD | NEW |
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 Loading... |
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 |
OLD | NEW |