OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/sync/base/model_type_test_util.h" |
| 6 |
5 #include "base/macros.h" | 7 #include "base/macros.h" |
6 #include "components/sync/base/model_type_test_util.h" | |
7 | 8 |
8 namespace syncer { | 9 namespace syncer { |
9 | 10 |
10 void PrintTo(ModelTypeSet model_types, ::std::ostream* os) { | 11 void PrintTo(ModelTypeSet model_types, ::std::ostream* os) { |
11 *os << ModelTypeSetToString(model_types); | 12 *os << ModelTypeSetToString(model_types); |
12 } | 13 } |
13 | 14 |
14 namespace { | 15 namespace { |
15 | 16 |
16 // Matcher implementation for HasModelTypes(). | 17 // Matcher implementation for HasModelTypes(). |
(...skipping 24 matching lines...) Expand all Loading... |
41 DISALLOW_COPY_AND_ASSIGN(HasModelTypesMatcher); | 42 DISALLOW_COPY_AND_ASSIGN(HasModelTypesMatcher); |
42 }; | 43 }; |
43 | 44 |
44 } // namespace | 45 } // namespace |
45 | 46 |
46 ::testing::Matcher<ModelTypeSet> HasModelTypes(ModelTypeSet expected_types) { | 47 ::testing::Matcher<ModelTypeSet> HasModelTypes(ModelTypeSet expected_types) { |
47 return ::testing::MakeMatcher(new HasModelTypesMatcher(expected_types)); | 48 return ::testing::MakeMatcher(new HasModelTypesMatcher(expected_types)); |
48 } | 49 } |
49 | 50 |
50 } // namespace syncer | 51 } // namespace syncer |
OLD | NEW |