aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-05-25 17:44:04 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-05-25 19:17:29 +0900
commit34d899380e0325a9db76b943707975488b8c2506 (patch)
tree024c97c35141dafe1fadc80f62a83b9b96e72fdc /test
parent6d0e22de7814f4fbf2201d84d207eec570e821cd (diff)
modify test
Change-Id: I2423843bfbfc0f0a88791298e9a0caeb655cf10c Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'test')
-rw-r--r--test/test.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/test.cpp b/test/test.cpp
index f56cd2f..716f0ef 100644
--- a/test/test.cpp
+++ b/test/test.cpp
@@ -92,7 +92,9 @@ TEST_F(reqtest, allocate_sequence)
bool result = app_list.requestFinished();
EXPECT_EQ(false, result);
- result = app_list.setAction(seq1, test1, test_role, test_area);
+ auto trg = app_list.getRequest(seq1);
+
+ result = app_list.setAction(seq1, trg.appid, trg.role, trg.area);
result &= app_list.setAction(seq1, test3, test_role, test_area);
EXPECT_EQ(true, result);
@@ -112,6 +114,14 @@ TEST_F(reqtest, allocate_sequence)
result = app_list.endDrawFullfilled(current);
EXPECT_EQ(true, result);
+ auto actions = app_list.getActions(current);
+ EXPECT_EQ(test1, actions[0].appid);
+ EXPECT_EQ(test_role, actions[0].role);
+ EXPECT_EQ(test_area, actions[0].area);
+ EXPECT_EQ(test3, actions[1].appid);
+ EXPECT_EQ(test_role, actions[1].role);
+ EXPECT_EQ(test_area, actions[1].area);
+
app_list.removeRequest(current);
/* lookup_seq_err = app_list.lookUpAllocatingApp(test1);
EXPECT_EQ(0, lookup_seq_err); */