blob: e66729a7797ce0ef014936c1d4e68952c7421aaa [file] [log] [blame]
Patrick Venturecd8dab42019-01-15 19:57:38 -08001#include "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