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 #include <gtest/gtest.h> | 5 #include <gtest/gtest.h> |
| 6 #include <stdint.h> |
| 7 |
| 8 #include "base/macros.h" |
6 #include "media/cast/constants.h" | 9 #include "media/cast/constants.h" |
7 #include "media/cast/net/cast_transport_defines.h" | 10 #include "media/cast/net/cast_transport_defines.h" |
8 | 11 |
9 namespace media { | 12 namespace media { |
10 namespace cast { | 13 namespace cast { |
11 | 14 |
12 class FrameIdWrapHelperTest : public ::testing::Test { | 15 class FrameIdWrapHelperTest : public ::testing::Test { |
13 protected: | 16 protected: |
14 FrameIdWrapHelperTest() : frame_id_wrap_helper_(kFirstFrameId - 1) {} | 17 FrameIdWrapHelperTest() : frame_id_wrap_helper_(kFirstFrameId - 1) {} |
15 ~FrameIdWrapHelperTest() override {} | 18 ~FrameIdWrapHelperTest() override {} |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 for (int i = 0; i < 50000 && !HasFailure(); i++) { | 77 for (int i = 0; i < 50000 && !HasFailure(); i++) { |
75 RunOneTest(i * 4711, 20); | 78 RunOneTest(i * 4711, 20); |
76 // Test wrap-around scenarios. | 79 // Test wrap-around scenarios. |
77 RunOneTest(0x7fffff00ul, 20); | 80 RunOneTest(0x7fffff00ul, 20); |
78 RunOneTest(0xffffff00ul, 20); | 81 RunOneTest(0xffffff00ul, 20); |
79 } | 82 } |
80 } | 83 } |
81 | 84 |
82 } // namespace cast | 85 } // namespace cast |
83 } // namespace media | 86 } // namespace media |
OLD | NEW |