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

Side by Side Diff: webrtc/rtc_base/thread_checker_unittest.cc

Issue 2966523003: Reland "Update includes for webrtc/{base => rtc_base} rename (3/3)" (Closed)
Patch Set: Restoring prime suspect includes Created 3 years, 5 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/rtc_base/thread_checker_impl.cc ('k') | webrtc/rtc_base/thread_unittest.cc » ('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) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 // Borrowed from Chromium's src/base/threading/thread_checker_unittest.cc. 11 // Borrowed from Chromium's src/base/threading/thread_checker_unittest.cc.
12 12
13 #include <memory> 13 #include <memory>
14 14
15 #include "webrtc/base/checks.h" 15 #include "webrtc/rtc_base/checks.h"
16 #include "webrtc/base/constructormagic.h" 16 #include "webrtc/rtc_base/constructormagic.h"
17 #include "webrtc/base/task_queue.h" 17 #include "webrtc/rtc_base/task_queue.h"
18 #include "webrtc/base/thread.h" 18 #include "webrtc/rtc_base/thread.h"
19 #include "webrtc/base/thread_checker.h" 19 #include "webrtc/rtc_base/thread_checker.h"
20 #include "webrtc/test/gtest.h" 20 #include "webrtc/test/gtest.h"
21 21
22 // Duplicated from base/threading/thread_checker.h so that we can be 22 // Duplicated from base/threading/thread_checker.h so that we can be
23 // good citizens there and undef the macro. 23 // good citizens there and undef the macro.
24 #define ENABLE_THREAD_CHECKER RTC_DCHECK_IS_ON 24 #define ENABLE_THREAD_CHECKER RTC_DCHECK_IS_ON
25 25
26 namespace rtc { 26 namespace rtc {
27 27
28 namespace { 28 namespace {
29 29
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 243
244 int var_thread_ ACCESS_ON(thread_); 244 int var_thread_ ACCESS_ON(thread_);
245 int var_checker_ GUARDED_BY(checker_); 245 int var_checker_ GUARDED_BY(checker_);
246 int var_queue_ ACCESS_ON(queue_); 246 int var_queue_ ACCESS_ON(queue_);
247 }; 247 };
248 248
249 // Just in case we ever get lumped together with other compilation units. 249 // Just in case we ever get lumped together with other compilation units.
250 #undef ENABLE_THREAD_CHECKER 250 #undef ENABLE_THREAD_CHECKER
251 251
252 } // namespace rtc 252 } // namespace rtc
OLDNEW
« no previous file with comments | « webrtc/rtc_base/thread_checker_impl.cc ('k') | webrtc/rtc_base/thread_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698