diff options
Diffstat (limited to 'remoting/host/log_to_server_unittest.cc')
-rw-r--r-- | remoting/host/log_to_server_unittest.cc | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/remoting/host/log_to_server_unittest.cc b/remoting/host/log_to_server_unittest.cc index 99a51ec..1fb0500 100644 --- a/remoting/host/log_to_server_unittest.cc +++ b/remoting/host/log_to_server_unittest.cc @@ -36,12 +36,11 @@ const char kHostJid[] = "host@domain.com/1234"; bool IsLogEntryForConnection(XmlElement* node, const char* connection_type) { return (node->Name() == QName(kChromotingNamespace, "entry") && - node->Attr(QName(std::string(), "event-name")) == "session-state" && - node->Attr(QName(std::string(), "session-state")) == "connected" && - node->Attr(QName(std::string(), "role")) == "host" && - node->Attr(QName(std::string(), "mode")) == "me2me" && - node->Attr(QName(std::string(), "connection-type")) == - connection_type); + node->Attr(QName("", "event-name")) == "session-state" && + node->Attr(QName("", "session-state")) == "connected" && + node->Attr(QName("", "role")) == "host" && + node->Attr(QName("", "mode")) == "me2me" && + node->Attr(QName("", "connection-type")) == connection_type); } MATCHER_P(IsClientConnected, connection_type, "") { @@ -92,10 +91,10 @@ MATCHER_P2(IsTwoClientsConnected, connection_type1, connection_type2, "") { bool IsLogEntryForDisconnection(XmlElement* node) { return (node->Name() == QName(kChromotingNamespace, "entry") && - node->Attr(QName(std::string(), "event-name")) == "session-state" && - node->Attr(QName(std::string(), "session-state")) == "closed" && - node->Attr(QName(std::string(), "role")) == "host" && - node->Attr(QName(std::string(), "mode")) == "me2me"); + node->Attr(QName("", "event-name")) == "session-state" && + node->Attr(QName("", "session-state")) == "closed" && + node->Attr(QName("", "role")) == "host" && + node->Attr(QName("", "mode")) == "me2me"); } MATCHER(IsClientDisconnected, "") { |