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

Side by Side Diff: sync/internal_api/public/util/proto_value_ptr_unittest.cc

Issue 1545553003: Switch to standard integer types in sync/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "sync/internal_api/public/util/proto_value_ptr.h" 5 #include "sync/internal_api/public/util/proto_value_ptr.h"
6 6
7 #include "base/macros.h"
7 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
8 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
9 10
10 namespace syncer { 11 namespace syncer {
11 12
12 namespace { 13 namespace {
13 14
14 // Simple test struct that wraps an integer 15 // Simple test struct that wraps an integer
15 struct IntValue { 16 struct IntValue {
16 public: 17 public:
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 EXPECT_EQ(1, TestValue::parse_count()); 238 EXPECT_EQ(1, TestValue::parse_count());
238 EXPECT_EQ(0, TestValue::copy_count()); 239 EXPECT_EQ(0, TestValue::copy_count());
239 240
240 EXPECT_EQ(v1, ptr1->value()); 241 EXPECT_EQ(v1, ptr1->value());
241 } 242 }
242 243
243 EXPECT_EQ(1, TestValue::delete_count()); 244 EXPECT_EQ(1, TestValue::delete_count());
244 } 245 }
245 246
246 } // namespace syncer 247 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/public/util/immutable_unittest.cc ('k') | sync/internal_api/public/util/weak_handle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698