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

Side by Side Diff: mojo/public/utility/tests/thread_unittest.cc

Issue 213393002: Mojo: Move public C system header files to mojo/public/c/system/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 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 | Annotate | Revision Log
« no previous file with comments | « mojo/public/utility/tests/mutex_unittest.cc ('k') | mojo/public/utility/thread.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 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/utility/thread.h" 5 #include "mojo/public/utility/thread.h"
6 6
7 #include "mojo/public/system/macros.h" 7 #include "mojo/public/c/system/macros.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 9
10 namespace mojo { 10 namespace mojo {
11 namespace { 11 namespace {
12 12
13 class SetIntThread : public Thread { 13 class SetIntThread : public Thread {
14 public: 14 public:
15 SetIntThread(int* int_to_set, int value) 15 SetIntThread(int* int_to_set, int value)
16 : int_to_set_(int_to_set), 16 : int_to_set_(int_to_set),
17 value_(value) { 17 value_(value) {
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 SetIntThread thread(options, &value, 4); 101 SetIntThread thread(options, &value, 4);
102 thread.Start(); 102 thread.Start();
103 thread.Join(); 103 thread.Join();
104 }, ""); 104 }, "");
105 } 105 }
106 #endif // !defined(NDEBUG) 106 #endif // !defined(NDEBUG)
107 107
108 } // namespace 108 } // namespace
109 } // namespace mojo 109 } // namespace mojo
110 110
OLDNEW
« no previous file with comments | « mojo/public/utility/tests/mutex_unittest.cc ('k') | mojo/public/utility/thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698