Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cppdap
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
cppdap
Commits
3a10d4ca
Commit
3a10d4ca
authored
Jan 05, 2020
by
Ben Clayton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Format all source files
parent
8633abaf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
network_test.cpp
src/network_test.cpp
+3
-4
No files found.
src/network_test.cpp
View file @
3a10d4ca
...
@@ -47,15 +47,14 @@ TEST(Network, ClientServer) {
...
@@ -47,15 +47,14 @@ TEST(Network, ClientServer) {
const
int
port
=
19021
;
const
int
port
=
19021
;
dap
::
Chan
<
bool
>
done
;
dap
::
Chan
<
bool
>
done
;
auto
server
=
dap
::
net
::
Server
::
create
();
auto
server
=
dap
::
net
::
Server
::
create
();
if
(
!
server
->
start
(
port
,
if
(
!
server
->
start
(
port
,
[
&
](
const
std
::
shared_ptr
<
dap
::
ReaderWriter
>&
rw
)
{
[
&
](
const
std
::
shared_ptr
<
dap
::
ReaderWriter
>&
rw
)
{
ASSERT_EQ
(
read
(
rw
),
"client to server"
);
ASSERT_EQ
(
read
(
rw
),
"client to server"
);
ASSERT_TRUE
(
write
(
rw
,
"server to client"
));
ASSERT_TRUE
(
write
(
rw
,
"server to client"
));
done
.
put
(
true
);
done
.
put
(
true
);
},
},
[
&
](
const
char
*
err
)
{
[
&
](
const
char
*
err
)
{
FAIL
()
<<
"Server error: "
<<
err
;
}))
{
FAIL
()
<<
"Server error: "
<<
err
;
}))
{
FAIL
()
<<
"Couldn't start server"
;
FAIL
()
<<
"Couldn't start server"
;
return
;
return
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment