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 #ifndef MEDIA_BASE_MOCK_FILTERS_H_ | 5 #ifndef MEDIA_BASE_MOCK_FILTERS_H_ |
6 #define MEDIA_BASE_MOCK_FILTERS_H_ | 6 #define MEDIA_BASE_MOCK_FILTERS_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 }; | 345 }; |
346 | 346 |
347 class MockCdmContext : public CdmContext { | 347 class MockCdmContext : public CdmContext { |
348 public: | 348 public: |
349 MockCdmContext(); | 349 MockCdmContext(); |
350 ~MockCdmContext() override; | 350 ~MockCdmContext() override; |
351 | 351 |
352 MOCK_METHOD0(GetDecryptor, Decryptor*()); | 352 MOCK_METHOD0(GetDecryptor, Decryptor*()); |
353 int GetCdmId() const override; | 353 int GetCdmId() const override; |
354 | 354 |
| 355 void set_cdm_id(int cdm_id); |
| 356 |
355 private: | 357 private: |
| 358 int cdm_id_ = CdmContext::kInvalidCdmId; |
| 359 |
356 DISALLOW_COPY_AND_ASSIGN(MockCdmContext); | 360 DISALLOW_COPY_AND_ASSIGN(MockCdmContext); |
357 }; | 361 }; |
358 | 362 |
359 } // namespace media | 363 } // namespace media |
360 | 364 |
361 #endif // MEDIA_BASE_MOCK_FILTERS_H_ | 365 #endif // MEDIA_BASE_MOCK_FILTERS_H_ |
OLD | NEW |