Lines Matching refs:HookTableTest
49 class HookTableTest : public testing::Test {
56 HookTableTest()
65 TEST_F(HookTableTest, ActionCompletes) {
68 Closure start_callback = Bind(&HookTableTest::StartAction, Unretained(this));
70 Bind(&HookTableTest::DoneAction, Unretained(this));
89 TEST_F(HookTableTest, ActionCompletesAndRemovesActionInDoneCallback) {
95 Closure start_callback = Bind(&HookTableTest::StartAction, Unretained(this));
97 Bind(&HookTableTest::StartAction2, Unretained(this));
99 Bind(&HookTableTest::DoneAction, Unretained(this));
109 TEST_F(HookTableTest, ActionCompletesInline) {
114 Closure start_callback = Bind(&HookTableTest::StartAction, Unretained(this));
116 Bind(&HookTableTest::DoneAction, Unretained(this));
125 TEST_F(HookTableTest, ActionTimesOut) {
130 Closure start_callback = Bind(&HookTableTest::StartAction, Unretained(this));
132 Bind(&HookTableTest::DoneAction, Unretained(this));
144 TEST_F(HookTableTest, MultipleActionsAllSucceed) {
154 Closure start_callback = Bind(&HookTableTest::StartAction, Unretained(this));
156 Bind(&HookTableTest::StartAction2, Unretained(this));
158 Bind(&HookTableTest::DoneAction, Unretained(this));
168 TEST_F(HookTableTest, MultipleActionsAndOneTimesOut) {
174 Closure start_callback = Bind(&HookTableTest::StartAction, Unretained(this));
176 Bind(&HookTableTest::DoneAction, Unretained(this));
190 TEST_F(HookTableTest, AddActionsWithSameName) {
194 Closure start_callback = Bind(&HookTableTest::StartAction, Unretained(this));
196 Bind(&HookTableTest::StartAction2, Unretained(this));
198 Bind(&HookTableTest::DoneAction, Unretained(this));
212 TEST_F(HookTableTest, RemoveAction) {
215 Closure start_callback = Bind(&HookTableTest::StartAction, Unretained(this));
217 Bind(&HookTableTest::DoneAction, Unretained(this));
223 TEST_F(HookTableTest, ActionCompleteFollowedByRemove) {
225 Closure start_callback = Bind(&HookTableTest::StartAction, Unretained(this));
231 TEST_F(HookTableTest, IsEmpty) {
250 TEST_F(HookTableTest, RefcountedObject) {
259 TEST_F(HookTableTest, ActionAddedBeforePreviousActionCompletes) {
263 Closure start_callback = Bind(&HookTableTest::StartAction, Unretained(this));
265 Bind(&HookTableTest::StartAction2, Unretained(this));
267 Bind(&HookTableTest::DoneAction, Unretained(this));