OLD | NEW |
| (Empty) |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_SYNC_SYNCABLE_MODEL_TYPE_TEST_UTIL_H_ | |
6 #define CHROME_BROWSER_SYNC_SYNCABLE_MODEL_TYPE_TEST_UTIL_H_ | |
7 #pragma once | |
8 | |
9 #include <ostream> | |
10 | |
11 #include "chrome/browser/sync/syncable/model_type.h" | |
12 #include "testing/gmock/include/gmock/gmock.h" | |
13 | |
14 namespace syncable { | |
15 | |
16 // Defined for googletest. Forwards to ModelTypeSetToString(). | |
17 void PrintTo(ModelTypeSet model_types, ::std::ostream* os); | |
18 | |
19 // A gmock matcher for ModelTypeSet. Use like: | |
20 // | |
21 // EXPECT_CALL(mock, ProcessModelTypes(HasModelTypes(expected_types))); | |
22 ::testing::Matcher<ModelTypeSet> HasModelTypes(ModelTypeSet expected_types); | |
23 | |
24 } // namespace syncable | |
25 | |
26 #endif // CHROME_BROWSER_SYNC_SYNCABLE_MODEL_TYPE_TEST_UTIL_H_ | |
OLD | NEW |