| 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" |
| 11 #include "media/base/media_log.h" |
| 11 #include "media/base/pipeline_status.h" | 12 #include "media/base/pipeline_status.h" |
| 12 #include "media/base/sample_format.h" | 13 #include "media/base/sample_format.h" |
| 13 #include "media/base/video_decoder_config.h" | 14 #include "media/base/video_decoder_config.h" |
| 14 #include "testing/gmock/include/gmock/gmock.h" | 15 #include "testing/gmock/include/gmock/gmock.h" |
| 15 #include "ui/gfx/geometry/size.h" | 16 #include "ui/gfx/geometry/size.h" |
| 16 | 17 |
| 17 namespace base { | 18 namespace base { |
| 18 class MessageLoop; | 19 class MessageLoop; |
| 19 class TimeDelta; | 20 class TimeDelta; |
| 20 } | 21 } |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 public: | 132 public: |
| 132 CallbackPairChecker(); | 133 CallbackPairChecker(); |
| 133 ~CallbackPairChecker(); | 134 ~CallbackPairChecker(); |
| 134 void RecordACalled(); | 135 void RecordACalled(); |
| 135 void RecordBCalled(); | 136 void RecordBCalled(); |
| 136 | 137 |
| 137 private: | 138 private: |
| 138 bool expecting_b_; | 139 bool expecting_b_; |
| 139 }; | 140 }; |
| 140 | 141 |
| 142 // Test implementation of a media log LogCB that sends media log messages to |
| 143 // DVLOG(1). |
| 144 void AddLogEntryForTest(MediaLog::MediaLogLevel level, |
| 145 const std::string& message); |
| 146 |
| 141 } // namespace media | 147 } // namespace media |
| 142 | 148 |
| 143 #endif // MEDIA_BASE_TEST_HELPERS_H_ | 149 #endif // MEDIA_BASE_TEST_HELPERS_H_ |
| OLD | NEW |