OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/notifier/unacked_invalidation_set.h" | 5 #ifndef COMPONENTS_INVALIDATION_UNACKED_INVALIDATION_SET_TEST_UTIL_H_ |
| 6 #define COMPONENTS_INVALIDATION_UNACKED_INVALIDATION_SET_TEST_UTIL_H_ |
| 7 |
| 8 #include "components/invalidation/unacked_invalidation_set.h" |
6 | 9 |
7 #include "testing/gmock/include/gmock/gmock-matchers.h" | 10 #include "testing/gmock/include/gmock/gmock-matchers.h" |
8 | 11 |
9 namespace syncer { | 12 namespace syncer { |
10 | 13 |
11 namespace test_util { | 14 namespace test_util { |
12 | 15 |
13 void PrintTo(const UnackedInvalidationSet& invalidations, ::std::ostream* os); | 16 void PrintTo(const UnackedInvalidationSet& invalidations, ::std::ostream* os); |
14 | 17 |
15 void PrintTo(const UnackedInvalidationsMap& map, ::std::ostream* os); | 18 void PrintTo(const UnackedInvalidationsMap& map, ::std::ostream* os); |
16 | 19 |
17 ::testing::Matcher<const UnackedInvalidationSet&> Eq( | 20 ::testing::Matcher<const UnackedInvalidationSet&> Eq( |
18 const UnackedInvalidationSet& expected); | 21 const UnackedInvalidationSet& expected); |
19 | 22 |
20 ::testing::Matcher<const UnackedInvalidationsMap&> Eq( | 23 ::testing::Matcher<const UnackedInvalidationsMap&> Eq( |
21 const UnackedInvalidationsMap& expected); | 24 const UnackedInvalidationsMap& expected); |
22 | 25 |
23 } // namespace test_util | 26 } // namespace test_util |
24 | 27 |
25 } // namespace syncer | 28 } // namespace syncer |
| 29 |
| 30 #endif // COMPONENTS_INVALIDATION_UNACKED_INVALIDATION_SET_TEST_UTIL_H_ |
OLD | NEW |