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

Side by Side Diff: tests/AtomicTest.cpp

Issue 1368333004: Move Mutexy things to private. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 2 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 | « src/core/SkSharedMutex.h ('k') | tests/skia_test.cpp » ('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 2012 Google Inc. 2 * Copyright 2012 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "../private/SkAtomics.h" 8 #include "SkAtomics.h"
9 #include "SkThreadUtils.h" 9 #include "SkThreadUtils.h"
10 #include "SkTypes.h" 10 #include "SkTypes.h"
11 #include "Test.h" 11 #include "Test.h"
12 12
13 struct AddInfo { 13 struct AddInfo {
14 int32_t valueToAdd; 14 int32_t valueToAdd;
15 int timesToAdd; 15 int timesToAdd;
16 unsigned int processorAffinity; 16 unsigned int processorAffinity;
17 }; 17 };
18 18
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 { 58 {
59 SkAtomic<int> v {0}; 59 SkAtomic<int> v {0};
60 REPORTER_ASSERT(reporter, 0 == v.load()); 60 REPORTER_ASSERT(reporter, 0 == v.load());
61 v = 10; 61 v = 10;
62 REPORTER_ASSERT(reporter, 10 == v.load()); 62 REPORTER_ASSERT(reporter, 10 == v.load());
63 int q = v; 63 int q = v;
64 REPORTER_ASSERT(reporter, 10 == q); 64 REPORTER_ASSERT(reporter, 10 == q);
65 } 65 }
66 } 66 }
OLDNEW
« no previous file with comments | « src/core/SkSharedMutex.h ('k') | tests/skia_test.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698