aboutsummaryrefslogtreecommitdiff
path: root/src/notification
diff options
context:
space:
mode:
authorLuis Hector Chavez <lhchavez@google.com>2016-07-22 11:23:39 -0700
committerLuis Hector Chavez <lhchavez@google.com>2016-07-22 11:23:39 -0700
commit7aaba044607c7c4f6a649d2001d6ac213683e8b8 (patch)
tree8d10ef44dd15c9ec6ccb3785599895e6835e8f0c /src/notification
parent83db8f75afbb37010450a6a5607764dedf20db6b (diff)
parent17f710e0eccdb78996c6e3ee65b03d43c18e1d8b (diff)
downloadlibweave-7aaba044607c7c4f6a649d2001d6ac213683e8b8.tar.gz
Merge remote-tracking branch 'weave/master' into 'weave/aosp-master'upstream-master
17f710e libweave: Update libchrome APIs to r405848
Diffstat (limited to 'src/notification')
-rw-r--r--src/notification/xmpp_iq_stanza_handler_unittest.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/notification/xmpp_iq_stanza_handler_unittest.cc b/src/notification/xmpp_iq_stanza_handler_unittest.cc
index 052b7c5..b159171 100644
--- a/src/notification/xmpp_iq_stanza_handler_unittest.cc
+++ b/src/notification/xmpp_iq_stanza_handler_unittest.cc
@@ -159,12 +159,13 @@ TEST_F(IqStanzaHandlerTest, OutOfOrderResponses) {
TEST_F(IqStanzaHandlerTest, RequestTimeout) {
bool called = false;
- auto on_timeout = [&called]() { called = true; };
+ auto on_timeout = [](bool* called) { *called = true; };
EXPECT_CALL(mock_xmpp_channel_, SendMessage(_)).Times(1);
EXPECT_FALSE(called);
- iq_stanza_handler_.SendRequest("set", "", "", "<body/>", {},
- base::Bind(on_timeout));
+ iq_stanza_handler_.SendRequest(
+ "set", "", "", "<body/>", {},
+ base::Bind(on_timeout, base::Unretained(&called)));
task_runner_.Run();
EXPECT_TRUE(called);
}