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

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

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/cdm_context.cc ('k') | media/base/mock_filters.cc » ('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 #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
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_
OLDNEW
« no previous file with comments | « media/base/cdm_context.cc ('k') | media/base/mock_filters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698