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

Side by Side Diff: webrtc/logging/rtc_event_log/ringbuffer_unittest.cc

Issue 2380683005: Moved RtcEventLog files from call/ to logging/ (new top level dir) (Closed)
Patch Set: Updated GYP files Created 4 years, 2 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 /* 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/logging/rtc_event_log/ringbuffer.h"
14 #include "webrtc/test/gtest.h" 15 #include "webrtc/test/gtest.h"
15 #include "webrtc/base/random.h" 16 #include "webrtc/base/random.h"
kjellander_webrtc 2016/09/30 10:57:05 nit: sort this first in the list (or does it have
skvlad 2016/09/30 18:50:55 Done.
16 #include "webrtc/call/ringbuffer.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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698