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 THIRD_PARTY_OCMOCK_GTEST_SUPPORT_H_ |
| 6 #define THIRD_PARTY_OCMOCK_GTEST_SUPPORT_H_ |
| 7 |
| 8 |
| 9 @class OCMockObject; |
| 10 |
| 11 namespace testing { |
| 12 namespace mac { |
| 13 |
| 14 // Calls -verify of the mock and traps the Objective-C exception that is |
| 15 // generated, adding it to the gtest failures and return true/false |
| 16 // for if there was an exception. The result should be used in normal |
| 17 // gtest EXECPT_TRUE/ASSERT_TRUE fashion. |
| 18 bool VerifyOCMock(OCMockObject* mock); |
| 19 |
| 20 } // namespace mac |
| 21 } // namespace testing |
| 22 |
| 23 #endif // THIRD_PARTY_OCMOCK_GTEST_SUPPORT_H_ |
OLD | NEW |