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

Side by Side Diff: mojo/public/cpp/utility/tests/mutex_unittest.cc

Issue 1543603002: Switch to standard integer types in mojo/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix 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 | « mojo/public/cpp/utility/run_loop.h ('k') | mojo/public/cpp/utility/tests/run_loop_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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "mojo/public/cpp/utility/mutex.h" 5 #include "mojo/public/cpp/utility/mutex.h"
6 6
7 #include <stddef.h>
7 #include <stdlib.h> // For |rand()|. 8 #include <stdlib.h> // For |rand()|.
8 #include <time.h> // For |nanosleep()| (defined by POSIX). 9 #include <time.h> // For |nanosleep()| (defined by POSIX).
9 10
10 #include <vector> 11 #include <vector>
11 12
12 #include "mojo/public/cpp/system/macros.h" 13 #include "mojo/public/cpp/system/macros.h"
13 #include "mojo/public/cpp/utility/thread.h" 14 #include "mojo/public/cpp/utility/thread.h"
14 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
15 16
16 namespace mojo { 17 namespace mojo {
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 // Destroy lock with lock held. 251 // Destroy lock with lock held.
251 EXPECT_DEATH_IF_SUPPORTED({ 252 EXPECT_DEATH_IF_SUPPORTED({
252 Mutex mutex; 253 Mutex mutex;
253 mutex.Lock(); 254 mutex.Lock();
254 }, ""); 255 }, "");
255 } 256 }
256 #endif // !defined(NDEBUG) 257 #endif // !defined(NDEBUG)
257 258
258 } // namespace 259 } // namespace
259 } // namespace mojo 260 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/public/cpp/utility/run_loop.h ('k') | mojo/public/cpp/utility/tests/run_loop_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698