| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |