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

Unified Diff: media/cast/test/frame_id_wrap_helper_test.cc

Issue 112133002: Cast:Moving netwrok sender related code to a designated folder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moving const' to .cc Created 7 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/cast/rtp_sender/rtp_sender.gyp ('k') | media/cast/video_receiver/video_receiver.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/test/frame_id_wrap_helper_test.cc
diff --git a/media/cast/test/frame_id_wrap_helper_test.cc b/media/cast/test/frame_id_wrap_helper_test.cc
deleted file mode 100644
index 8cd0cb51488cfa5a86afa48b3e9d98b7a697bd99..0000000000000000000000000000000000000000
--- a/media/cast/test/frame_id_wrap_helper_test.cc
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include <gtest/gtest.h>
-#include <media/cast/cast_defines.h>
-
-namespace media {
-namespace cast {
-
-class FrameIdWrapHelperTest : public ::testing::Test {
- protected:
- FrameIdWrapHelperTest() {}
- virtual ~FrameIdWrapHelperTest() {}
-
- FrameIdWrapHelper frame_id_wrap_helper_;
-};
-
-TEST_F(FrameIdWrapHelperTest, FirstFrame) {
- EXPECT_EQ(kStartFrameId, frame_id_wrap_helper_.MapTo32bitsFrameId(255u));
-}
-
-TEST_F(FrameIdWrapHelperTest, Rollover) {
- uint32 new_frame_id = 0u;
- for (int i = 0; i <= 256; ++i) {
- new_frame_id = frame_id_wrap_helper_.MapTo32bitsFrameId(
- static_cast<uint8>(i));
- }
- EXPECT_EQ(256u, new_frame_id);
-}
-
-TEST_F(FrameIdWrapHelperTest, OutOfOrder) {
- uint32 new_frame_id = 0u;
- for (int i = 0; i < 255; ++i) {
- new_frame_id = frame_id_wrap_helper_.MapTo32bitsFrameId(
- static_cast<uint8>(i));
- }
- EXPECT_EQ(254u, new_frame_id);
- new_frame_id = frame_id_wrap_helper_.MapTo32bitsFrameId(0u);
- EXPECT_EQ(256u, new_frame_id);
- new_frame_id = frame_id_wrap_helper_.MapTo32bitsFrameId(255u);
- EXPECT_EQ(255u, new_frame_id);
- new_frame_id = frame_id_wrap_helper_.MapTo32bitsFrameId(1u);
- EXPECT_EQ(257u, new_frame_id);
-}
-
-} // namespace cast
-} // namespace media
« no previous file with comments | « media/cast/rtp_sender/rtp_sender.gyp ('k') | media/cast/video_receiver/video_receiver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698