@@ -16,16 +16,16 @@ using namespace boost::asio::ip;
16
16
#if defined(BOOST_ASIO_HAS_LOCAL_SOCKETS)
17
17
using namespace boost ::asio::local;
18
18
#endif
19
- using namespace std ;
20
19
using namespace testing ;
21
20
using boost::bind;
22
21
using boost::thread;
23
22
namespace fs = boost::filesystem;
24
23
25
24
static const time_duration THREAD_TEST_TIMEOUT = milliseconds(4000 );
26
25
27
- MATCHER (IsConnected, string(negation ? " is not" : " is" ) +
28
- " connected") { return arg.good (); }
26
+ MATCHER (IsConnected, std::string(negation ? " is not" : " is" ) + " connected") {
27
+ return arg.good ();
28
+ }
29
29
30
30
MATCHER (HasTerminated, " " ) {
31
31
return !arg.joinable ();
@@ -55,7 +55,7 @@ MATCHER_P(EventuallyReceives, value, "") {
55
55
56
56
class MockProtocolHandler : public ProtocolHandler {
57
57
public:
58
- MOCK_CONST_METHOD1 (handle, string(const string & request));
58
+ MOCK_CONST_METHOD1 (handle, std:: string(const std:: string& request));
59
59
};
60
60
61
61
class SocketServerTest : public Test {
@@ -134,8 +134,8 @@ TEST_F(TCPSocketServerTest, receiveAndSendsSingleLineMassages) {
134
134
ASSERT_THAT (client, IsConnected ());
135
135
136
136
// when
137
- client << " 1" << flush << " 2" << endl << flush;
138
- client << " 3" << endl << " 4" << endl << flush;
137
+ client << " 1" << std:: flush << " 2" << std:: endl << std:: flush;
138
+ client << " 3" << std:: endl << " 4" << std:: endl << std:: flush;
139
139
140
140
// then
141
141
EXPECT_THAT (client, EventuallyReceives (" A" ));
@@ -204,7 +204,7 @@ TEST_F(UnixSocketServerTest, fullLifecycle) {
204
204
205
205
// traffic flows
206
206
stream_protocol::iostream client (socketName);
207
- client << " X" << endl << flush;
207
+ client << " X" << std:: endl << std:: flush;
208
208
EXPECT_THAT (client, EventuallyReceives (" Y" ));
209
209
210
210
// client disconnection terminates server
0 commit comments