OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 // This file automatically generated by testing/generate_gmock_mutant.py. | 5 // This file automatically generated by testing/generate_gmock_mutant.py. |
6 // DO NOT EDIT. | 6 // DO NOT EDIT. |
7 | 7 |
8 #ifndef TESTING_GMOCK_MUTANT_H_ | 8 #ifndef TESTING_GMOCK_MUTANT_H_ |
9 #define TESTING_GMOCK_MUTANT_H_ | 9 #define TESTING_GMOCK_MUTANT_H_ |
10 | 10 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 // base::MessageLoop* loop = base::MessageLoop::current(); | 50 // base::MessageLoop* loop = base::MessageLoop::current(); |
51 // loop->PostDelayedTask(FROM_HERE, base::MessageLoop::QuitClosure(), | 51 // loop->PostDelayedTask(FROM_HERE, base::MessageLoop::QuitClosure(), |
52 // 1000 * seconds); | 52 // 1000 * seconds); |
53 // } | 53 // } |
54 // }; | 54 // }; |
55 // | 55 // |
56 // Mock mock; | 56 // Mock mock; |
57 // // Will invoke mock.HandleFlowers("orchids", n, request) | 57 // // Will invoke mock.HandleFlowers("orchids", n, request) |
58 // // "orchids" is a pre-bound argument, and <n> and <request> are call-time | 58 // // "orchids" is a pre-bound argument, and <n> and <request> are call-time |
59 // // arguments - they are not known until the OnRequest mock is invoked. | 59 // // arguments - they are not known until the OnRequest mock is invoked. |
60 // EXPECT_CALL(mock, OnRequest(Ge(5), StartsWith("flower")) | 60 // EXPECT_CALL(mock, OnRequest(Ge(5), base::StartsWith("flower")) |
61 // .Times(1) | 61 // .Times(1) |
62 // .WillOnce(Invoke(CreateFunctor(&mock, &Mock::HandleFlowers, | 62 // .WillOnce(Invoke(CreateFunctor(&mock, &Mock::HandleFlowers, |
63 // string("orchids")))); | 63 // string("orchids")))); |
64 // | 64 // |
65 // | 65 // |
66 // // No pre-bound arguments, two call-time arguments passed | 66 // // No pre-bound arguments, two call-time arguments passed |
67 // // directly to DoLogMessage | 67 // // directly to DoLogMessage |
68 // EXPECT_CALL(mock, OnLogMessage(_, _)) | 68 // EXPECT_CALL(mock, OnLogMessage(_, _)) |
69 // .Times(AnyNumber()) | 69 // .Times(AnyNumber()) |
70 // .WillAlways(Invoke(CreateFunctor, &mock, &Mock::DoLogMessage)); | 70 // .WillAlways(Invoke(CreateFunctor, &mock, &Mock::DoLogMessage)); |
(...skipping 5097 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5168 A4, A5, A6>> | 5168 A4, A5, A6>> |
5169 (obj, method, base::MakeTuple(p1, p2, p3, p4, p5, p6)); | 5169 (obj, method, base::MakeTuple(p1, p2, p3, p4, p5, p6)); |
5170 return MutantFunctor<R, base::Tuple<A1, A2, A3, A4, A5, A6>>(t); | 5170 return MutantFunctor<R, base::Tuple<A1, A2, A3, A4, A5, A6>>(t); |
5171 } | 5171 } |
5172 #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING | 5172 #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING |
5173 #endif // defined (OS_WIN) && !defined (ARCH_CPU_X86_64) | 5173 #endif // defined (OS_WIN) && !defined (ARCH_CPU_X86_64) |
5174 | 5174 |
5175 } // namespace testing | 5175 } // namespace testing |
5176 | 5176 |
5177 #endif // TESTING_GMOCK_MUTANT_H_ | 5177 #endif // TESTING_GMOCK_MUTANT_H_ |
OLD | NEW |