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 30 matching lines...) Expand all Loading... |
41 // string result = SStringPrintf("In request of %d %s ", n, request); | 41 // string result = SStringPrintf("In request of %d %s ", n, request); |
42 // for (int i = 0; i < n; ++i) result.append(reply) | 42 // for (int i = 0; i < n; ++i) result.append(reply) |
43 // return result; | 43 // return result; |
44 // } | 44 // } |
45 // | 45 // |
46 // void DoLogMessage(int level, const string& message) { | 46 // void DoLogMessage(int level, const string& message) { |
47 // } | 47 // } |
48 // | 48 // |
49 // void QuitMessageLoop(int seconds) { | 49 // void QuitMessageLoop(int seconds) { |
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, |
| 52 // base::MessageLoop::QuitWhenIdleClosure(), |
52 // 1000 * seconds); | 53 // 1000 * seconds); |
53 // } | 54 // } |
54 // }; | 55 // }; |
55 // | 56 // |
56 // Mock mock; | 57 // Mock mock; |
57 // // Will invoke mock.HandleFlowers("orchids", n, request) | 58 // // Will invoke mock.HandleFlowers("orchids", n, request) |
58 // // "orchids" is a pre-bound argument, and <n> and <request> are call-time | 59 // // "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. | 60 // // arguments - they are not known until the OnRequest mock is invoked. |
60 // EXPECT_CALL(mock, OnRequest(Ge(5), base::StartsWith("flower")) | 61 // EXPECT_CALL(mock, OnRequest(Ge(5), base::StartsWith("flower")) |
61 // .Times(1) | 62 // .Times(1) |
(...skipping 5106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5168 A4, A5, A6>> | 5169 A4, A5, A6>> |
5169 (obj, method, base::MakeTuple(p1, p2, p3, p4, p5, p6)); | 5170 (obj, method, base::MakeTuple(p1, p2, p3, p4, p5, p6)); |
5170 return MutantFunctor<R, base::Tuple<A1, A2, A3, A4, A5, A6>>(t); | 5171 return MutantFunctor<R, base::Tuple<A1, A2, A3, A4, A5, A6>>(t); |
5171 } | 5172 } |
5172 #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING | 5173 #endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING |
5173 #endif // defined (OS_WIN) && !defined (ARCH_CPU_X86_64) | 5174 #endif // defined (OS_WIN) && !defined (ARCH_CPU_X86_64) |
5174 | 5175 |
5175 } // namespace testing | 5176 } // namespace testing |
5176 | 5177 |
5177 #endif // TESTING_GMOCK_MUTANT_H_ | 5178 #endif // TESTING_GMOCK_MUTANT_H_ |
OLD | NEW |