Patrick Venture | aceb4ba | 2018-09-27 14:50:37 -0700 | [diff] [blame] | 1 | #include <blobs-ipmid/manager.hpp> |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 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 |