OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "blimp/helium/lazy_syncable_adapter.h" | 5 #include "blimp/helium/lazy_syncable_adapter.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/memory/ptr_util.h" |
10 #include "blimp/helium/helium_test.h" | 11 #include "blimp/helium/helium_test.h" |
11 #include "blimp/helium/mock_objects.h" | 12 #include "blimp/helium/mock_objects.h" |
12 #include "blimp/helium/serializable_struct.h" | 13 #include "blimp/helium/serializable_struct.h" |
13 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
15 | 16 |
16 using testing::_; | 17 using testing::_; |
17 using testing::DoAll; | 18 using testing::DoAll; |
18 using testing::Return; | 19 using testing::Return; |
19 using testing::SaveArg; | 20 using testing::SaveArg; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 TestSyncableChangeset apply_changeset; | 94 TestSyncableChangeset apply_changeset; |
94 EXPECT_CALL(syncable_, ApplyChangeset(_)) | 95 EXPECT_CALL(syncable_, ApplyChangeset(_)) |
95 .WillOnce(SaveArg<0>(&apply_changeset)); | 96 .WillOnce(SaveArg<0>(&apply_changeset)); |
96 adapter_.ApplyChangeset(*string_changeset); | 97 adapter_.ApplyChangeset(*string_changeset); |
97 EXPECT_EQ(33, apply_changeset.value()); | 98 EXPECT_EQ(33, apply_changeset.value()); |
98 } | 99 } |
99 | 100 |
100 } // namespace | 101 } // namespace |
101 } // namespace helium | 102 } // namespace helium |
102 } // namespace blimp | 103 } // namespace blimp |
OLD | NEW |