| OLD | NEW |
| 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 "components/invalidation/impl/invalidation_test_util.h" | 5 #include "components/invalidation/impl/invalidation_test_util.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | |
| 8 #include "base/json/json_writer.h" | 7 #include "base/json/json_writer.h" |
| 9 #include "base/json/string_escape.h" | 8 #include "base/json/string_escape.h" |
| 9 #include "base/macros.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| 11 #include "components/invalidation/public/invalidation.h" | 11 #include "components/invalidation/public/invalidation.h" |
| 12 | 12 |
| 13 namespace syncer { | 13 namespace syncer { |
| 14 | 14 |
| 15 using ::testing::MakeMatcher; | 15 using ::testing::MakeMatcher; |
| 16 using ::testing::MatchResultListener; | 16 using ::testing::MatchResultListener; |
| 17 using ::testing::Matcher; | 17 using ::testing::Matcher; |
| 18 using ::testing::MatcherInterface; | 18 using ::testing::MatcherInterface; |
| 19 using ::testing::PrintToString; | 19 using ::testing::PrintToString; |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 | 110 |
| 111 void PrintTo(const Invalidation& inv, ::std::ostream* os) { | 111 void PrintTo(const Invalidation& inv, ::std::ostream* os) { |
| 112 *os << "{ payload: " << inv.ToString() << " }"; | 112 *os << "{ payload: " << inv.ToString() << " }"; |
| 113 } | 113 } |
| 114 | 114 |
| 115 Matcher<const Invalidation&> Eq(const Invalidation& expected) { | 115 Matcher<const Invalidation&> Eq(const Invalidation& expected) { |
| 116 return MakeMatcher(new InvalidationEqMatcher(expected)); | 116 return MakeMatcher(new InvalidationEqMatcher(expected)); |
| 117 } | 117 } |
| 118 | 118 |
| 119 } // namespace syncer | 119 } // namespace syncer |
| OLD | NEW |