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

Side by Side Diff: base/message_loop/message_loop_test.h

Issue 1926813005: Remove MessageLoop::PostNonNestableDelayedTask(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ios Created 4 years, 7 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 | « base/message_loop/message_loop.cc ('k') | base/message_loop/message_loop_test.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 #ifndef BASE_MESSAGE_LOOP_MESSAGE_LOOP_TEST_H_ 5 #ifndef BASE_MESSAGE_LOOP_MESSAGE_LOOP_TEST_H_
6 #define BASE_MESSAGE_LOOP_MESSAGE_LOOP_TEST_H_ 6 #define BASE_MESSAGE_LOOP_MESSAGE_LOOP_TEST_H_
7 7
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
(...skipping 14 matching lines...) Expand all
25 void RunTest_PostDelayedTask_InPostOrder_2(MessagePumpFactory factory); 25 void RunTest_PostDelayedTask_InPostOrder_2(MessagePumpFactory factory);
26 void RunTest_PostDelayedTask_InPostOrder_3(MessagePumpFactory factory); 26 void RunTest_PostDelayedTask_InPostOrder_3(MessagePumpFactory factory);
27 void RunTest_PostDelayedTask_SharedTimer(MessagePumpFactory factory); 27 void RunTest_PostDelayedTask_SharedTimer(MessagePumpFactory factory);
28 void RunTest_EnsureDeletion(MessagePumpFactory factory); 28 void RunTest_EnsureDeletion(MessagePumpFactory factory);
29 void RunTest_EnsureDeletion_Chain(MessagePumpFactory factory); 29 void RunTest_EnsureDeletion_Chain(MessagePumpFactory factory);
30 void RunTest_Nesting(MessagePumpFactory factory); 30 void RunTest_Nesting(MessagePumpFactory factory);
31 void RunTest_RecursiveDenial1(MessagePumpFactory factory); 31 void RunTest_RecursiveDenial1(MessagePumpFactory factory);
32 void RunTest_RecursiveDenial3(MessagePumpFactory factory); 32 void RunTest_RecursiveDenial3(MessagePumpFactory factory);
33 void RunTest_RecursiveSupport1(MessagePumpFactory factory); 33 void RunTest_RecursiveSupport1(MessagePumpFactory factory);
34 void RunTest_NonNestableWithNoNesting(MessagePumpFactory factory); 34 void RunTest_NonNestableWithNoNesting(MessagePumpFactory factory);
35 void RunTest_NonNestableInNestedLoop(MessagePumpFactory factory, 35 void RunTest_NonNestableInNestedLoop(MessagePumpFactory factory);
36 bool use_delayed);
37 void RunTest_QuitNow(MessagePumpFactory factory); 36 void RunTest_QuitNow(MessagePumpFactory factory);
38 void RunTest_RunLoopQuitTop(MessagePumpFactory factory); 37 void RunTest_RunLoopQuitTop(MessagePumpFactory factory);
39 void RunTest_RunLoopQuitNested(MessagePumpFactory factory); 38 void RunTest_RunLoopQuitNested(MessagePumpFactory factory);
40 void RunTest_RunLoopQuitBogus(MessagePumpFactory factory); 39 void RunTest_RunLoopQuitBogus(MessagePumpFactory factory);
41 void RunTest_RunLoopQuitDeep(MessagePumpFactory factory); 40 void RunTest_RunLoopQuitDeep(MessagePumpFactory factory);
42 void RunTest_RunLoopQuitOrderBefore(MessagePumpFactory factory); 41 void RunTest_RunLoopQuitOrderBefore(MessagePumpFactory factory);
43 void RunTest_RunLoopQuitOrderDuring(MessagePumpFactory factory); 42 void RunTest_RunLoopQuitOrderDuring(MessagePumpFactory factory);
44 void RunTest_RunLoopQuitOrderAfter(MessagePumpFactory factory); 43 void RunTest_RunLoopQuitOrderAfter(MessagePumpFactory factory);
45 void RunTest_RecursivePosts(MessagePumpFactory factory); 44 void RunTest_RecursivePosts(MessagePumpFactory factory);
46 45
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 } \ 88 } \
90 TEST(MessageLoopTestType##id, RecursiveDenial3) { \ 89 TEST(MessageLoopTestType##id, RecursiveDenial3) { \
91 base::test::RunTest_RecursiveDenial3(factory); \ 90 base::test::RunTest_RecursiveDenial3(factory); \
92 } \ 91 } \
93 TEST(MessageLoopTestType##id, RecursiveSupport1) { \ 92 TEST(MessageLoopTestType##id, RecursiveSupport1) { \
94 base::test::RunTest_RecursiveSupport1(factory); \ 93 base::test::RunTest_RecursiveSupport1(factory); \
95 } \ 94 } \
96 TEST(MessageLoopTestType##id, NonNestableWithNoNesting) { \ 95 TEST(MessageLoopTestType##id, NonNestableWithNoNesting) { \
97 base::test::RunTest_NonNestableWithNoNesting(factory); \ 96 base::test::RunTest_NonNestableWithNoNesting(factory); \
98 } \ 97 } \
99 TEST(MessageLoopTestType##id, NonNestableInNestedLoop) { \
100 base::test::RunTest_NonNestableInNestedLoop(factory, false); \
101 } \
102 TEST(MessageLoopTestType##id, NonNestableDelayedInNestedLoop) { \ 98 TEST(MessageLoopTestType##id, NonNestableDelayedInNestedLoop) { \
103 base::test::RunTest_NonNestableInNestedLoop(factory, true); \ 99 base::test::RunTest_NonNestableInNestedLoop(factory); \
104 } \ 100 } \
105 TEST(MessageLoopTestType##id, QuitNow) { \ 101 TEST(MessageLoopTestType##id, QuitNow) { \
106 base::test::RunTest_QuitNow(factory); \ 102 base::test::RunTest_QuitNow(factory); \
107 } \ 103 } \
108 TEST(MessageLoopTestType##id, RunLoopQuitTop) { \ 104 TEST(MessageLoopTestType##id, RunLoopQuitTop) { \
109 base::test::RunTest_RunLoopQuitTop(factory); \ 105 base::test::RunTest_RunLoopQuitTop(factory); \
110 } \ 106 } \
111 TEST(MessageLoopTestType##id, RunLoopQuitNested) { \ 107 TEST(MessageLoopTestType##id, RunLoopQuitNested) { \
112 base::test::RunTest_RunLoopQuitNested(factory); \ 108 base::test::RunTest_RunLoopQuitNested(factory); \
113 } \ 109 } \
(...skipping 10 matching lines...) Expand all
124 base::test::RunTest_RunLoopQuitOrderDuring(factory); \ 120 base::test::RunTest_RunLoopQuitOrderDuring(factory); \
125 } \ 121 } \
126 TEST(MessageLoopTestType##id, RunLoopQuitOrderAfter) { \ 122 TEST(MessageLoopTestType##id, RunLoopQuitOrderAfter) { \
127 base::test::RunTest_RunLoopQuitOrderAfter(factory); \ 123 base::test::RunTest_RunLoopQuitOrderAfter(factory); \
128 } \ 124 } \
129 TEST(MessageLoopTestType##id, RecursivePosts) { \ 125 TEST(MessageLoopTestType##id, RecursivePosts) { \
130 base::test::RunTest_RecursivePosts(factory); \ 126 base::test::RunTest_RecursivePosts(factory); \
131 } \ 127 } \
132 128
133 #endif // BASE_MESSAGE_LOOP_MESSAGE_LOOP_TEST_H_ 129 #endif // BASE_MESSAGE_LOOP_MESSAGE_LOOP_TEST_H_
OLDNEW
« no previous file with comments | « base/message_loop/message_loop.cc ('k') | base/message_loop/message_loop_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698