]> git.stg.codes - stg.git/blobdiff - tests/test_reconnect_on_tariff_change.cpp
Add missing CMakeLists.txt
[stg.git] / tests / test_reconnect_on_tariff_change.cpp
index 610231cef6854aa6ed3d9f07906d67e0d8844321..b2e2aa022ba9c4f561704a7efd32d3aa1e00dacc 100644 (file)
@@ -1,11 +1,11 @@
 #include "tut/tut.hpp"
 
 #include "tut/tut.hpp"
 
+#include "stg/admin.h"
 #include "stg/user_property.h"
 #include "user_impl.h"
 
 #include "testsettings.h"
 #include "testtariffs.h"
 #include "stg/user_property.h"
 #include "user_impl.h"
 
 #include "testsettings.h"
 #include "testtariffs.h"
-#include "testadmin.h"
 #include "teststore.h"
 #include "testauth.h"
 #include "testusers.h"
 #include "teststore.h"
 #include "testauth.h"
 #include "testusers.h"
@@ -63,7 +63,7 @@ namespace tut
 
         TEST_SETTINGS_LOCAL settings(false);
         TEST_TARIFFS tariffs;
 
         TEST_SETTINGS_LOCAL settings(false);
         TEST_TARIFFS tariffs;
-        TEST_ADMIN admin;
+        STG::Admin admin(STG::Priv(0xFFFF), {}, {});
         TEST_STORE store;
         TEST_AUTH auth;
         TEST_USERS users;
         TEST_STORE store;
         TEST_AUTH auth;
         TEST_USERS users;
@@ -121,7 +121,7 @@ namespace tut
         ensure("s2->GetReconnectOnTariffChange() == true", s2->GetReconnectOnTariffChange());
 
         TEST_TARIFFS tariffs;
         ensure("s2->GetReconnectOnTariffChange() == true", s2->GetReconnectOnTariffChange());
 
         TEST_TARIFFS tariffs;
-        TEST_ADMIN admin;
+        STG::Admin admin(STG::Priv(0xFFFF), {}, {});
         TEST_STORE store;
         TEST_AUTH auth;
         TEST_USERS users;
         TEST_STORE store;
         TEST_AUTH auth;
         TEST_USERS users;