blob: 2022146ae9270cab39dac50ec378e9f278e31612 [file] [log] [blame]
#include <blobs-ipmid/manager.hpp>
#include <gtest/gtest.h>
namespace blobs
{
TEST(ManagerGetSessionTest, NextSessionReturned)
{
// This test verifies the next session ID is returned.
BlobManager mgr;
uint16_t first, second;
EXPECT_TRUE(mgr.getSession(&first));
EXPECT_TRUE(mgr.getSession(&second));
EXPECT_FALSE(first == second);
}
TEST(ManagerGetSessionTest, SessionsCheckedAgainstList)
{
// TODO(venture): Need a test that verifies the session ids are checked
// against open sessions.
}
} // namespace blobs