Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit56bb2c5

Browse files
committed
Fixed streaming test
1 parent09a888e commit56bb2c5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎test/modem/stream-command_test.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ TEST_F(StreamCommandTest, streams) {
4646
.WillOnce(Return(path))
4747
.WillOnce(Return("END_STREAM"));
4848

49-
const Stringvalue("{path: '/test/path' data: 'Test value'}");
49+
const String data ="Test Value";
50+
const Stringvalue(String("{\"path\" :\"/test/path\",\"data\" :\"") + data +"\"}");
5051
EXPECT_CALL(*stream_,available())
5152
.WillOnce(Return(true))
5253
.WillRepeatedly(Return(false));
@@ -66,9 +67,9 @@ TEST_F(StreamCommandTest, streams) {
6667
EXPECT_CALL(out_,println(path))
6768
.WillOnce(Return(1));
6869

69-
EXPECT_CALL(out_,println(value.length()))
70+
EXPECT_CALL(out_,println(data.length()))
7071
.WillOnce(Return(1));
71-
EXPECT_CALL(out_,println(value))
72+
EXPECT_CALL(out_,println(data))
7273
.WillOnce(Return(1));
7374

7475
EXPECT_CALL(out_,println(String("+OK")))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp