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

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

Issue 126170: Make the generated stubs weak. Enable the unittests that had conflicting symbols. (Closed)
Patch Set: Fix indent.w Created 11 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 | « no previous file | media/base/pipeline_impl_unittest.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) 2009 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 //
5 // TODO(ajwong): This whole file is deprecated in favor or gmock style mocks.
6 // The deprecated classes have been moved into the old_mocks to avoid colliding
7 // with the newer mock classes. Once all the unittests have been migrated, this
8 // should be deleted.
4 9
5 #ifndef MEDIA_BASE_MOCK_MEDIA_FILTERS_H_ 10 #ifndef MEDIA_BASE_MOCK_MEDIA_FILTERS_H_
6 #define MEDIA_BASE_MOCK_MEDIA_FILTERS_H_ 11 #define MEDIA_BASE_MOCK_MEDIA_FILTERS_H_
7 12
8 #include <string> 13 #include <string>
9 14
10 #include "base/scoped_ptr.h" 15 #include "base/scoped_ptr.h"
11 #include "base/waitable_event.h" 16 #include "base/waitable_event.h"
12 #include "media/base/buffers.h" 17 #include "media/base/buffers.h"
13 #include "media/base/factory.h" 18 #include "media/base/factory.h"
14 #include "media/base/filter_host.h" 19 #include "media/base/filter_host.h"
15 #include "media/base/filters.h" 20 #include "media/base/filters.h"
16 #include "media/base/media_format.h" 21 #include "media/base/media_format.h"
17 #include "media/base/pipeline.h" 22 #include "media/base/pipeline.h"
18 #include "media/base/video_frame_impl.h" 23 #include "media/base/video_frame_impl.h"
19 #include "testing/gtest/include/gtest/gtest.h" 24 #include "testing/gtest/include/gtest/gtest.h"
20 25
21 namespace media { 26 namespace media {
22 27
28 namespace old_mocks {
29
23 // Behaviors for MockDataSource filter. 30 // Behaviors for MockDataSource filter.
24 enum MockDataSourceBehavior { 31 enum MockDataSourceBehavior {
25 MOCK_DATA_SOURCE_NORMAL_INIT, 32 MOCK_DATA_SOURCE_NORMAL_INIT,
26 MOCK_DATA_SOURCE_NEVER_INIT, 33 MOCK_DATA_SOURCE_NEVER_INIT,
27 MOCK_DATA_SOURCE_TASK_INIT, 34 MOCK_DATA_SOURCE_TASK_INIT,
28 MOCK_DATA_SOURCE_URL_ERROR_IN_INIT, 35 MOCK_DATA_SOURCE_URL_ERROR_IN_INIT,
29 MOCK_DATA_SOURCE_INIT_RETURN_FALSE, 36 MOCK_DATA_SOURCE_INIT_RETURN_FALSE,
30 MOCK_DATA_SOURCE_TASK_ERROR_PRE_INIT, 37 MOCK_DATA_SOURCE_TASK_ERROR_PRE_INIT,
31 MOCK_DATA_SOURCE_TASK_ERROR_POST_INIT 38 MOCK_DATA_SOURCE_TASK_ERROR_POST_INIT
32 }; 39 };
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 event_.Signal(); 667 event_.Signal();
661 } 668 }
662 669
663 base::WaitableEvent event_; 670 base::WaitableEvent event_;
664 bool callback_success_status_; 671 bool callback_success_status_;
665 bool waiting_for_callback_; 672 bool waiting_for_callback_;
666 673
667 DISALLOW_COPY_AND_ASSIGN(InitializationHelper); 674 DISALLOW_COPY_AND_ASSIGN(InitializationHelper);
668 }; 675 };
669 676
677 } // namespace old_mocks
678
670 } // namespace media 679 } // namespace media
671 680
672 #endif // MEDIA_BASE_MOCK_MEDIA_FILTERS_H_ 681 #endif // MEDIA_BASE_MOCK_MEDIA_FILTERS_H_
OLDNEW
« no previous file with comments | « no previous file | media/base/pipeline_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698