Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(323)

Side by Side Diff: testing/gmock_mutant.h

Issue 1390513002: Remove base::MessageLoop::{Quit,QuitClosure} functions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split into small CLs Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « testing/generate_gmock_mutant.py ('k') | tools/ipc_fuzzer/message_replay/replay_process.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « testing/generate_gmock_mutant.py ('k') | tools/ipc_fuzzer/message_replay/replay_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698