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

Side by Side Diff: media/cast/net/frame_id_wrap_helper_test.cc

Issue 1542013004: Switch to standard integer types in media/, take 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more stddef Created 4 years, 12 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
OLDNEW
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
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
OLDNEW
« no previous file with comments | « media/cast/net/cast_transport_sender_impl_unittest.cc ('k') | media/cast/net/mock_cast_transport_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698