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

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

Issue 1550503002: Switch to standard integer types in base/threading/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 | « base/threading/thread.cc ('k') | base/threading/thread_collision_warner.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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/basictypes.h"
6 #include "base/logging.h" 5 #include "base/logging.h"
6 #include "base/macros.h"
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/threading/simple_thread.h"
8 #include "base/threading/thread_checker.h" 9 #include "base/threading/thread_checker.h"
9 #include "base/threading/simple_thread.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 // Duplicated from base/threading/thread_checker.h so that we can be 12 // Duplicated from base/threading/thread_checker.h so that we can be
13 // good citizens there and undef the macro. 13 // good citizens there and undef the macro.
14 #if !defined(NDEBUG) || defined(DCHECK_ALWAYS_ON) 14 #if !defined(NDEBUG) || defined(DCHECK_ALWAYS_ON)
15 #define ENABLE_THREAD_CHECKER 1 15 #define ENABLE_THREAD_CHECKER 1
16 #else 16 #else
17 #define ENABLE_THREAD_CHECKER 0 17 #define ENABLE_THREAD_CHECKER 0
18 #endif 18 #endif
19 19
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 ThreadCheckerClass::DetachThenCallFromDifferentThreadImpl(); 170 ThreadCheckerClass::DetachThenCallFromDifferentThreadImpl();
171 } 171 }
172 #endif // ENABLE_THREAD_CHECKER 172 #endif // ENABLE_THREAD_CHECKER
173 173
174 #endif // GTEST_HAS_DEATH_TEST || !ENABLE_THREAD_CHECKER 174 #endif // GTEST_HAS_DEATH_TEST || !ENABLE_THREAD_CHECKER
175 175
176 // Just in case we ever get lumped together with other compilation units. 176 // Just in case we ever get lumped together with other compilation units.
177 #undef ENABLE_THREAD_CHECKER 177 #undef ENABLE_THREAD_CHECKER
178 178
179 } // namespace base 179 } // namespace base
OLDNEW
« no previous file with comments | « base/threading/thread.cc ('k') | base/threading/thread_collision_warner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698