blob: 2022146ae9270cab39dac50ec378e9f278e31612 [file] [log] [blame]
Patrick Ventureaceb4ba2018-09-27 14:50:37 -07001#include <blobs-ipmid/manager.hpp>
Patrick Ventureef3aead2018-09-12 08:53:29 -07002
3#include <gtest/gtest.h>
4
5namespace blobs
6{
7
8TEST(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
19TEST(ManagerGetSessionTest, SessionsCheckedAgainstList)
20{
21 // TODO(venture): Need a test that verifies the session ids are checked
22 // against open sessions.
23}
24} // namespace blobs