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_TEST_HELPERS_H_ | 5 #ifndef MEDIA_BASE_TEST_HELPERS_H_ |
6 #define MEDIA_BASE_TEST_HELPERS_H_ | 6 #define MEDIA_BASE_TEST_HELPERS_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "media/base/channel_layout.h" | 10 #include "media/base/channel_layout.h" |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 public: | 137 public: |
138 CallbackPairChecker(); | 138 CallbackPairChecker(); |
139 ~CallbackPairChecker(); | 139 ~CallbackPairChecker(); |
140 void RecordACalled(); | 140 void RecordACalled(); |
141 void RecordBCalled(); | 141 void RecordBCalled(); |
142 | 142 |
143 private: | 143 private: |
144 bool expecting_b_; | 144 bool expecting_b_; |
145 }; | 145 }; |
146 | 146 |
147 // Test implementation of a media log LogCB that sends media log messages to | |
148 // DVLOG(1). | |
149 void AddLogEntryForTest(MediaLog::MediaLogLevel level, | |
150 const std::string& message); | |
151 | |
152 } // namespace media | 147 } // namespace media |
153 | 148 |
154 #endif // MEDIA_BASE_TEST_HELPERS_H_ | 149 #endif // MEDIA_BASE_TEST_HELPERS_H_ |
OLD | NEW |