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

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

Issue 1917043005: #include "webrtc/base/constructormagic.h" where appropriate (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 8 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/base/testechoserver.h ('k') | webrtc/base/virtualsocketserver.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) 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 "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 #include "webrtc/base/checks.h" 16 #include "webrtc/base/checks.h"
17 #include "webrtc/base/constructormagic.h"
17 #include "webrtc/base/thread.h" 18 #include "webrtc/base/thread.h"
18 #include "webrtc/base/thread_checker.h" 19 #include "webrtc/base/thread_checker.h"
19 20
20 // Duplicated from base/threading/thread_checker.h so that we can be 21 // Duplicated from base/threading/thread_checker.h so that we can be
21 // good citizens there and undef the macro. 22 // good citizens there and undef the macro.
22 #if !defined(NDEBUG) || defined(DCHECK_ALWAYS_ON) 23 #if !defined(NDEBUG) || defined(DCHECK_ALWAYS_ON)
23 #define ENABLE_THREAD_CHECKER 1 24 #define ENABLE_THREAD_CHECKER 1
24 #else 25 #else
25 #define ENABLE_THREAD_CHECKER 0 26 #define ENABLE_THREAD_CHECKER 0
26 #endif 27 #endif
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 ThreadCheckerClass::DetachThenCallFromDifferentThreadImpl(); 191 ThreadCheckerClass::DetachThenCallFromDifferentThreadImpl();
191 } 192 }
192 #endif // ENABLE_THREAD_CHECKER 193 #endif // ENABLE_THREAD_CHECKER
193 194
194 #endif // GTEST_HAS_DEATH_TEST || !ENABLE_THREAD_CHECKER 195 #endif // GTEST_HAS_DEATH_TEST || !ENABLE_THREAD_CHECKER
195 196
196 // Just in case we ever get lumped together with other compilation units. 197 // Just in case we ever get lumped together with other compilation units.
197 #undef ENABLE_THREAD_CHECKER 198 #undef ENABLE_THREAD_CHECKER
198 199
199 } // namespace rtc 200 } // namespace rtc
OLDNEW
« no previous file with comments | « webrtc/base/testechoserver.h ('k') | webrtc/base/virtualsocketserver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698