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

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: Rebase to master 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
« no previous file with comments | « webrtc/logging/rtc_event_log/ringbuffer.h ('k') | webrtc/logging/rtc_event_log/rtc_event_log.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/base/random.h" 14 #include "webrtc/base/random.h"
15 #include "webrtc/call/ringbuffer.h" 15 #include "webrtc/logging/rtc_event_log/ringbuffer.h"
16 #include "webrtc/test/gtest.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)
(...skipping 135 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
« no previous file with comments | « webrtc/logging/rtc_event_log/ringbuffer.h ('k') | webrtc/logging/rtc_event_log/rtc_event_log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698