Home
last modified time | relevance | path

Searched refs:XmppChannel (Results 1 – 4 of 4) sorted by relevance

/external/libweave/src/notification/
Dxmpp_channel.cc91 XmppChannel::XmppChannel(const std::string& account, in XmppChannel() function in weave::XmppChannel
106 &XmppChannel::OnConnectivityChanged, weak_ptr_factory_.GetWeakPtr()));
110 void XmppChannel::OnMessageRead(size_t size, ErrorPtr error) { in OnMessageRead()
124 void XmppChannel::OnStreamStart(const std::string& node_name, in OnStreamStart()
129 void XmppChannel::OnStreamEnd(const std::string& node_name) { in OnStreamEnd()
139 base::Bind(&XmppChannel::Restart, task_ptr_factory_.GetWeakPtr()), {}); in OnStreamEnd()
145 void XmppChannel::OnStanza(std::unique_ptr<XmlNode> stanza) { in OnStanza()
152 base::Bind(&XmppChannel::HandleStanza, task_ptr_factory_.GetWeakPtr(), in OnStanza()
157 void XmppChannel::HandleStanza(std::unique_ptr<XmlNode> stanza) { in HandleStanza()
191 base::Bind(&XmppChannel::OnBindCompleted, in HandleStanza()
[all …]
Dxmpp_channel_unittest.cc84 class FakeXmppChannel : public XmppChannel {
88 : XmppChannel{kAccountName, kAccessToken, kEndpoint, task_runner, in FakeXmppChannel()
136 RunUntil(XmppChannel::XmppState::kConnected); in StartStream()
139 void StartWithState(XmppChannel::XmppState state) { in StartWithState()
144 void RunUntil(XmppChannel::XmppState st) { in RunUntil()
156 EXPECT_EQ(XmppChannel::XmppState::kNotStarted, xmpp_client_.state()); in TEST_F()
159 RunUntil(XmppChannel::XmppState::kConnected); in TEST_F()
167 StartWithState(XmppChannel::XmppState::kConnected); in TEST_F()
170 RunUntil(XmppChannel::XmppState::kAuthenticationStarted); in TEST_F()
174 StartWithState(XmppChannel::XmppState::kAuthenticationStarted); in TEST_F()
[all …]
Dxmpp_channel.h39 class XmppChannel : public NotificationChannel,
46 XmppChannel(const std::string& account,
51 ~XmppChannel() override = default;
158 base::WeakPtrFactory<XmppChannel> ping_ptr_factory_{this};
159 base::WeakPtrFactory<XmppChannel> task_ptr_factory_{this};
160 base::WeakPtrFactory<XmppChannel> weak_ptr_factory_{this};
161 DISALLOW_COPY_AND_ASSIGN(XmppChannel);
/external/libweave/src/
Ddevice_registration_info.cc467 new XmppChannel{GetSettings().robot_account, access_token_, in StartNotificationChannel()