8 #include <gtest/gtest.h>
12 using namespace HCE::reduce;
18 SharedPtr<additions::TaskReducersManagerIf>taskReducersManager;
21 reduceAdditionsStorage.
addWith(taskId, taskReducersManager);
23 ASSERT_EQ(taskReducersManager, reduceAdditionsStorage.
findBy(taskId));
29 SharedPtr<additions::TaskReducersManagerIf>taskReducersManager;
30 unsigned long long secondKey = 1;
32 reduceAdditionsStorage.
addWith(secondKey, taskReducersManager);
34 ASSERT_EQ(taskReducersManager, reduceAdditionsStorage.
findBy(secondKey));
41 int invalidTaskId = 8;
50 unsigned long long invalidTaskId = 8;
59 SharedPtr<additions::TaskReducersManagerIf>taskReducersManager;
61 unsigned long long secondKey = 1;
62 reduceAdditionsStorage.
addWith(secondKey, taskReducersManager);
63 reduceAdditionsStorage.
deleteBy(secondKey);