| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 * | 9 * |
| 10 */ | 10 */ |
| 11 | 11 |
| 12 #include <list> | 12 #include <list> |
| 13 | 13 |
| 14 #include "webrtc/test/gtest.h" | |
| 15 #include "webrtc/base/random.h" | 14 #include "webrtc/base/random.h" |
| 16 #include "webrtc/call/ringbuffer.h" | 15 #include "webrtc/call/ringbuffer.h" |
| 16 #include "webrtc/test/gtest.h" |
| 17 | 17 |
| 18 namespace { | 18 namespace { |
| 19 template <typename T> | 19 template <typename T> |
| 20 class MovableType { | 20 class MovableType { |
| 21 public: | 21 public: |
| 22 MovableType() : value_(), moved_from_(false), moved_to_(false) {} | 22 MovableType() : value_(), moved_from_(false), moved_to_(false) {} |
| 23 explicit MovableType(T value) | 23 explicit MovableType(T value) |
| 24 : value_(value), moved_from_(false), moved_to_(false) {} | 24 : value_(value), moved_from_(false), moved_to_(false) {} |
| 25 MovableType(const MovableType<T>& other) | 25 MovableType(const MovableType<T>& other) |
| 26 : value_(other.value_), moved_from_(false), moved_to_(false) {} | 26 : value_(other.value_), moved_from_(false), moved_to_(false) {} |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 EXPECT_FALSE(q.empty()); | 161 EXPECT_FALSE(q.empty()); |
| 162 EXPECT_EQ(4711, q.front()); | 162 EXPECT_EQ(4711, q.front()); |
| 163 q.push_back(1024); | 163 q.push_back(1024); |
| 164 EXPECT_FALSE(q.empty()); | 164 EXPECT_FALSE(q.empty()); |
| 165 EXPECT_EQ(1024, q.front()); | 165 EXPECT_EQ(1024, q.front()); |
| 166 q.pop_front(); | 166 q.pop_front(); |
| 167 EXPECT_TRUE(q.empty()); | 167 EXPECT_TRUE(q.empty()); |
| 168 } | 168 } |
| 169 | 169 |
| 170 } // namespace webrtc | 170 } // namespace webrtc |
| OLD | NEW |