-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3e21d11
commit 3d56750
Showing
1 changed file
with
61 additions
and
0 deletions.
There are no files selected for viewing
61 changes: 61 additions & 0 deletions
61
src/sdks/core/src/cpp/sdk/cpptest/unit/secureStorageTest.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
#include "unit.h" | ||
|
||
|
||
// class SecureStorageTest : public ::testing::Test { | ||
// protected: | ||
// JsonEngine* jsonEngine; | ||
// Firebolt::Error error = Firebolt::Error::None; | ||
|
||
// void SetUp() override | ||
// { | ||
// jsonEngine = new JsonEngine(); | ||
// } | ||
|
||
// void TearDown() override | ||
// { | ||
// delete jsonEngine; | ||
// } | ||
// }; | ||
|
||
|
||
// TEST_F(SecureStorageTest, Get) | ||
// { | ||
// nlohmann::json_abi_v3_11_3::json expectedValues = nlohmann::json::parse(jsonEngine->get_value("SecureStorage.get")); | ||
|
||
// auto value = Firebolt::IFireboltAccessor::Instance().SecureStorageInterface().get(&error); | ||
// EXPECT_EQ(error, Firebolt::Error::None); | ||
// EXPECT_EQ(value, actual_value); | ||
// } | ||
|
||
|
||
// TEST_F(SecureStorageTest, TestSecureStorageset) | ||
// { | ||
|
||
// auto actual_value = jsonEngine->get_value("SecureStorage.set"); | ||
// actual_value = actual_value.substr(1, actual_value.length() - 2); | ||
// auto value = Firebolt::IFireboltAccessor::Instance().SecureStorageInterface().set(&error); | ||
// EXPECT_EQ(error, Firebolt::Error::None); | ||
// EXPECT_EQ(value, actual_value); | ||
// } | ||
|
||
|
||
// TEST_F(SecureStorageTest, TestSecureStorageremove) | ||
// { | ||
|
||
// auto actual_value = jsonEngine->get_value("SecureStorage.remove"); | ||
// actual_value = actual_value.substr(1, actual_value.length() - 2); | ||
// auto value = Firebolt::IFireboltAccessor::Instance().SecureStorageInterface().remove(&error); | ||
// EXPECT_EQ(error, Firebolt::Error::None); | ||
// EXPECT_EQ(value, actual_value); | ||
// } | ||
|
||
|
||
// TEST_F(SecureStorageTest, TestSecureStorageclear) | ||
// { | ||
|
||
// auto actual_value = jsonEngine->get_value("SecureStorage.clear"); | ||
// actual_value = actual_value.substr(1, actual_value.length() - 2); | ||
// auto value = Firebolt::IFireboltAccessor::Instance().SecureStorageInterface().clear(&error); | ||
// EXPECT_EQ(error, Firebolt::Error::None); | ||
// EXPECT_EQ(value, actual_value); | ||
// } |