OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // Joint LogSerializer and LogDeserializer testing to make sure they stay in | 5 // Joint LogSerializer and LogDeserializer testing to make sure they stay in |
6 // sync. | 6 // sync. |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 10 #include "base/macros.h" |
8 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
9 #include "media/cast/logging/log_deserializer.h" | 12 #include "media/cast/logging/log_deserializer.h" |
10 #include "media/cast/logging/log_serializer.h" | 13 #include "media/cast/logging/log_serializer.h" |
11 #include "media/cast/logging/logging_defines.h" | 14 #include "media/cast/logging/logging_defines.h" |
12 #include "media/cast/logging/proto/proto_utils.h" | 15 #include "media/cast/logging/proto/proto_utils.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
14 | 17 |
15 using media::cast::proto::AggregatedFrameEvent; | 18 using media::cast::proto::AggregatedFrameEvent; |
16 using media::cast::proto::AggregatedPacketEvent; | 19 using media::cast::proto::AggregatedPacketEvent; |
17 using media::cast::proto::BasePacketEvent; | 20 using media::cast::proto::BasePacketEvent; |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 compressed, | 218 compressed, |
216 100, | 219 100, |
217 serialized_.get(), | 220 serialized_.get(), |
218 &output_bytes_); | 221 &output_bytes_); |
219 EXPECT_FALSE(success); | 222 EXPECT_FALSE(success); |
220 EXPECT_EQ(0, output_bytes_); | 223 EXPECT_EQ(0, output_bytes_); |
221 } | 224 } |
222 | 225 |
223 } // namespace cast | 226 } // namespace cast |
224 } // namespace media | 227 } // namespace media |
OLD | NEW |