xref: /openbmc/phosphor-ipmi-blobs/test/manager_getsession_unittest.cpp (revision c0f499b594b158bdb6c61764c27729fef6837cd3)
1 #include "manager.hpp"
2 
3 #include <gtest/gtest.h>
4 
5 namespace blobs
6 {
7 
8 TEST(ManagerGetSessionTest, NextSessionReturned)
9 {
10     // This test verifies the next session ID is returned.
11     BlobManager mgr;
12 
13     uint16_t first, second;
14     EXPECT_TRUE(mgr.getSession(&first));
15     EXPECT_TRUE(mgr.getSession(&second));
16     EXPECT_FALSE(first == second);
17 }
18 
19 TEST(ManagerGetSessionTest, SessionsCheckedAgainstList)
20 {
21     // TODO(venture): Need a test that verifies the session ids are checked
22     // against open sessions.
23 }
24 } // namespace blobs
25