Lines Matching refs:hook_table_

57       : hook_table_(&event_dispatcher_) {}  in HookTableTest()
59 ResultCallback* GetDoneCallback() { return &hook_table_.done_callback_; } in GetDoneCallback()
62 HookTable hook_table_; member in shill::HookTableTest
71 hook_table_.Add(kName, start_callback); in TEST_F()
72 hook_table_.Run(0, done_callback); in TEST_F()
73 hook_table_.ActionComplete(kName); in TEST_F()
91 .WillOnce(CompleteActionAndRemoveAction(&hook_table_, kName)); in TEST_F()
93 .WillOnce(CompleteAction(&hook_table_, kName2)); in TEST_F()
100 hook_table_.Add(kName, start_callback); in TEST_F()
101 hook_table_.Add(kName2, start2_callback); in TEST_F()
102 hook_table_.Run(0, done_callback); in TEST_F()
112 .WillOnce(CompleteAction(&hook_table_, kName)); in TEST_F()
117 hook_table_.Add(kName, start_callback); in TEST_F()
118 hook_table_.Run(0, done_callback); in TEST_F()
134 hook_table_.Add(kName, start_callback); in TEST_F()
135 hook_table_.Run(kTimeout, done_callback); in TEST_F()
151 .WillOnce(CompleteAction(&hook_table_, kName1)); in TEST_F()
160 hook_table_.Add(kName1, start2_callback); in TEST_F()
161 hook_table_.Add(kName2, start_callback); in TEST_F()
162 hook_table_.Add(kName3, start_callback); in TEST_F()
163 hook_table_.Run(kTimeout, done_callback); in TEST_F()
164 hook_table_.ActionComplete(kName2); in TEST_F()
165 hook_table_.ActionComplete(kName3); in TEST_F()
178 hook_table_.Add(kName1, start_callback); in TEST_F()
179 hook_table_.Add(kName2, start_callback); in TEST_F()
180 hook_table_.Add(kName3, start_callback); in TEST_F()
181 hook_table_.Run(kTimeout, done_callback); in TEST_F()
182 hook_table_.ActionComplete(kName1); in TEST_F()
183 hook_table_.ActionComplete(kName3); in TEST_F()
199 hook_table_.Add(kName, start_callback); in TEST_F()
203 hook_table_.Add(kName, start2_callback); in TEST_F()
204 hook_table_.Run(0, done_callback); in TEST_F()
205 hook_table_.ActionComplete(kName); in TEST_F()
218 hook_table_.Add(kName, start_callback); in TEST_F()
219 hook_table_.Remove(kName); in TEST_F()
220 hook_table_.Run(0, done_callback); in TEST_F()
226 hook_table_.Add(kName, start_callback); in TEST_F()
227 hook_table_.ActionComplete(kName); in TEST_F()
228 hook_table_.Remove(kName); in TEST_F()
232 EXPECT_TRUE(hook_table_.IsEmpty()); in TEST_F()
233 hook_table_.Add(kName, Closure()); in TEST_F()
234 EXPECT_FALSE(hook_table_.IsEmpty()); in TEST_F()
235 hook_table_.Remove(kName); in TEST_F()
236 EXPECT_TRUE(hook_table_.IsEmpty()); in TEST_F()
268 hook_table_.Add(kName, start_callback); in TEST_F()
269 hook_table_.Run(0, done_callback); in TEST_F()
273 hook_table_.Add(kName, start2_callback); in TEST_F()
274 hook_table_.ActionComplete(kName); in TEST_F()