OLD | NEW |
1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_SYNC_SYNCABLE_MODEL_TYPE_TEST_UTIL_H_ | 5 #ifndef SYNC_SYNCABLE_MODEL_TYPE_TEST_UTIL_H_ |
6 #define CHROME_BROWSER_SYNC_SYNCABLE_MODEL_TYPE_TEST_UTIL_H_ | 6 #define SYNC_SYNCABLE_MODEL_TYPE_TEST_UTIL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <ostream> | 9 #include <ostream> |
10 | 10 |
11 #include "chrome/browser/sync/syncable/model_type.h" | 11 #include "sync/syncable/model_type.h" |
12 #include "testing/gmock/include/gmock/gmock.h" | 12 #include "testing/gmock/include/gmock/gmock.h" |
13 | 13 |
14 namespace syncable { | 14 namespace syncable { |
15 | 15 |
16 // Defined for googletest. Forwards to ModelTypeSetToString(). | 16 // Defined for googletest. Forwards to ModelTypeSetToString(). |
17 void PrintTo(ModelTypeSet model_types, ::std::ostream* os); | 17 void PrintTo(ModelTypeSet model_types, ::std::ostream* os); |
18 | 18 |
19 // A gmock matcher for ModelTypeSet. Use like: | 19 // A gmock matcher for ModelTypeSet. Use like: |
20 // | 20 // |
21 // EXPECT_CALL(mock, ProcessModelTypes(HasModelTypes(expected_types))); | 21 // EXPECT_CALL(mock, ProcessModelTypes(HasModelTypes(expected_types))); |
22 ::testing::Matcher<ModelTypeSet> HasModelTypes(ModelTypeSet expected_types); | 22 ::testing::Matcher<ModelTypeSet> HasModelTypes(ModelTypeSet expected_types); |
23 | 23 |
24 } // namespace syncable | 24 } // namespace syncable |
25 | 25 |
26 #endif // CHROME_BROWSER_SYNC_SYNCABLE_MODEL_TYPE_TEST_UTIL_H_ | 26 #endif // SYNC_SYNCABLE_MODEL_TYPE_TEST_UTIL_H_ |
OLD | NEW |