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

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

Issue 6532008: Fix chromium-style compile error that got in the tree since yesterday. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes for Feb 17th Created 9 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « chrome/test/webdriver/cookie.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // A new breed of mock media filters, this time using gmock! Feel free to add 5 // A new breed of mock media filters, this time using gmock! Feel free to add
6 // actions if you need interesting side-effects (i.e., copying data to the 6 // actions if you need interesting side-effects (i.e., copying data to the
7 // buffer passed into MockDataSource::Read()). 7 // buffer passed into MockDataSource::Read()).
8 // 8 //
9 // Don't forget you can use StrictMock<> and NiceMock<> if you want the mock 9 // Don't forget you can use StrictMock<> and NiceMock<> if you want the mock
10 // filters to fail the test or do nothing when an unexpected method is called. 10 // filters to fail the test or do nothing when an unexpected method is called.
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 313
314 // Helper gmock action that calls DisableAudioRenderer() on behalf of the 314 // Helper gmock action that calls DisableAudioRenderer() on behalf of the
315 // provided filter. 315 // provided filter.
316 ACTION_P(DisableAudioRenderer, filter) { 316 ACTION_P(DisableAudioRenderer, filter) {
317 filter->host()->DisableAudioRenderer(); 317 filter->host()->DisableAudioRenderer();
318 } 318 }
319 319
320 // Helper mock statistics callback. 320 // Helper mock statistics callback.
321 class MockStatisticsCallback { 321 class MockStatisticsCallback {
322 public: 322 public:
323 MockStatisticsCallback();
324 ~MockStatisticsCallback();
325
323 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics)); 326 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics));
324 }; 327 };
325 328
326 } // namespace media 329 } // namespace media
327 330
328 #endif // MEDIA_BASE_MOCK_FILTERS_H_ 331 #endif // MEDIA_BASE_MOCK_FILTERS_H_
OLDNEW
« no previous file with comments | « chrome/test/webdriver/cookie.cc ('k') | media/base/mock_filters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698