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

Side by Side Diff: mojo/public/cpp/bindings/tests/container_test_util.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 5 years 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
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 <stddef.h>
6
5 #include "mojo/public/cpp/bindings/tests/container_test_util.h" 7 #include "mojo/public/cpp/bindings/tests/container_test_util.h"
6 8
7 namespace mojo { 9 namespace mojo {
8 10
9 size_t CopyableType::num_instances_ = 0; 11 size_t CopyableType::num_instances_ = 0;
10 size_t MoveOnlyType::num_instances_ = 0; 12 size_t MoveOnlyType::num_instances_ = 0;
11 13
12 CopyableType::CopyableType() : copied_(false), ptr_(this) { 14 CopyableType::CopyableType() : copied_(false), ptr_(this) {
13 num_instances_++; 15 num_instances_++;
14 } 16 }
(...skipping 26 matching lines...) Expand all
41 moved_ = true; 43 moved_ = true;
42 ptr_ = other.ptr(); 44 ptr_ = other.ptr();
43 return *this; 45 return *this;
44 } 46 }
45 47
46 MoveOnlyType::~MoveOnlyType() { 48 MoveOnlyType::~MoveOnlyType() {
47 num_instances_--; 49 num_instances_--;
48 } 50 }
49 51
50 } // namespace mojo 52 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/tests/container_test_util.h ('k') | mojo/public/cpp/bindings/tests/handle_passing_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698