Lines Matching refs:fake_push_client_
25 NonBlockingPushClientTest() : fake_push_client_(NULL) {}
51 if (fake_push_client_) {
55 fake_push_client_ = new FakePushClient();
56 return scoped_ptr<PushClient>(fake_push_client_);
63 FakePushClient* fake_push_client_;
73 EXPECT_TRUE(fake_push_client_->subscriptions().empty());
77 fake_push_client_->subscriptions(), subscriptions));
86 EXPECT_TRUE(fake_push_client_->email().empty());
87 EXPECT_TRUE(fake_push_client_->token().empty());
89 EXPECT_EQ(kEmail, fake_push_client_->email());
90 EXPECT_EQ(kToken, fake_push_client_->token());
108 EXPECT_TRUE(fake_push_client_->sent_notifications().empty());
110 ASSERT_EQ(1u, fake_push_client_->sent_notifications().size());
112 fake_push_client_->sent_notifications()[0].Equals(notification));
118 EXPECT_EQ(0, fake_push_client_->sent_pings());
120 ASSERT_EQ(1, fake_push_client_->sent_pings());
128 fake_push_client_->EnableNotifications();
132 fake_push_client_->DisableNotifications(
143 fake_push_client_->SimulateIncomingNotification(notification);