Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge pull request #5444 from npoltorapavlo/fix_Thunder_masterbranch_… #5462

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 5 additions & 11 deletions .github/workflows/BuildThunder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pip install jsonref

git clone https://github.com/rdkcentral/ThunderTools.git

cmake -G Ninja -S ThunderTools -B build/ThunderTools -DCMAKE_INSTALL_PREFIX="install/usr"
cmake -G Ninja -S ThunderTools -B build/ThunderTools -DCMAKE_INSTALL_PREFIX="install"

cmake --build build/ThunderTools --target install

Expand All @@ -27,17 +27,12 @@ cmake --build build/ThunderTools --target install
git clone https://github.com/rdkcentral/Thunder.git

cmake -G Ninja -S Thunder -B build/Thunder \
-DBUILD_SHARED_LIBS=ON \
-DBINDING="127.0.0.1" \
-DCMAKE_BUILD_TYPE="Debug" \
-DCMAKE_INSTALL_PREFIX="install/usr" \
-DCMAKE_MODULE_PATH="${PWD}/install/usr/include/WPEFramework/Modules" \
-DDATA_PATH="${PWD}/install/usr/share/WPEFramework" \
-DPERSISTENT_PATH="${PWD}/install/var/wpeframework" \
-DCMAKE_INSTALL_PREFIX="install" \
-DPORT="55555" \
-DPROXYSTUB_PATH="${PWD}/install/usr/lib/wpeframework/proxystubs" \
-DSYSTEM_PATH="${PWD}/install/usr/lib/wpeframework/plugins" \
-DVOLATILE_PATH="tmp"
-DTOOLS_SYSROOT="${PWD}" \
-DINITV_SCRIPT=OFF

cmake --build build/Thunder --target install

Expand All @@ -47,7 +42,6 @@ cmake --build build/Thunder --target install
git clone https://github.com/rdkcentral/ThunderInterfaces.git

cmake -G Ninja -S ThunderInterfaces -B build/ThunderInterfaces \
-DCMAKE_INSTALL_PREFIX="install/usr" \
-DCMAKE_MODULE_PATH="${PWD}/install/usr/include/WPEFramework/Modules"
-DCMAKE_INSTALL_PREFIX="install"

cmake --build build/ThunderInterfaces --target install
10 changes: 6 additions & 4 deletions .github/workflows/L0-PersistentStore-grpc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ name: L0-PersistentStore-grpc
on:
push:
paths:
- PersistentStore/grpc/**
- PersistentStore/**
- .github/workflows/*PersistentStore*.yml
pull_request:
paths:
- PersistentStore/grpc/**
- PersistentStore/**
- .github/workflows/*PersistentStore*.yml

jobs:
build:
Expand All @@ -29,12 +31,12 @@ jobs:
- name: Build
working-directory: ${{github.workspace}}
run: |
cmake -S ${GITHUB_REPOSITORY}/PersistentStore/grpc/l0test -B build/grpcl0test -DCMAKE_INSTALL_PREFIX="install/usr" -DCMAKE_CXX_FLAGS="--coverage -Wall -Werror"
cmake -S ${GITHUB_REPOSITORY}/PersistentStore/grpc/l0test -B build/grpcl0test -DCMAKE_INSTALL_PREFIX="install" -DCMAKE_CXX_FLAGS="--coverage -Wall -Werror"
cmake --build build/grpcl0test --target install
- name: Run
working-directory: ${{github.workspace}}
run: PATH=${PWD}/install/usr/bin:${PATH} LD_LIBRARY_PATH=${PWD}/install/usr/lib:${LD_LIBRARY_PATH} valgrind --tool=memcheck --log-file=valgrind_log --leak-check=yes --show-reachable=yes --track-fds=yes --fair-sched=try grpcl0test
run: PATH=${PWD}/install/bin:${PATH} LD_LIBRARY_PATH=${PWD}/install/lib:${LD_LIBRARY_PATH} valgrind --tool=memcheck --log-file=valgrind_log --leak-check=yes --show-reachable=yes --track-fds=yes --fair-sched=try grpcl0test

- name: Generate coverage
working-directory: ${{github.workspace}}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/L0-PersistentStore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ on:
push:
paths:
- PersistentStore/**
- .github/workflows/*PersistentStore*.yml
pull_request:
paths:
- PersistentStore/**
- .github/workflows/*PersistentStore*.yml

jobs:
build:
Expand All @@ -29,12 +31,12 @@ jobs:
- name: Build
working-directory: ${{github.workspace}}
run: |
cmake -S ${GITHUB_REPOSITORY}/PersistentStore/l0test -B build/persistentstorel0test -DCMAKE_INSTALL_PREFIX="install/usr" -DCMAKE_CXX_FLAGS="--coverage -Wall -Werror"
cmake -S ${GITHUB_REPOSITORY}/PersistentStore/l0test -B build/persistentstorel0test -DCMAKE_INSTALL_PREFIX="install" -DCMAKE_CXX_FLAGS="--coverage -Wall -Werror"
cmake --build build/persistentstorel0test --target install

- name: Run
working-directory: ${{github.workspace}}
run: PATH=${PWD}/install/usr/bin:${PATH} LD_LIBRARY_PATH=${PWD}/install/usr/lib:${LD_LIBRARY_PATH} valgrind --tool=memcheck --log-file=valgrind_log --leak-check=yes --show-reachable=yes --track-fds=yes --fair-sched=try persistentstorel0test
run: PATH=${PWD}/install/bin:${PATH} LD_LIBRARY_PATH=${PWD}/install/lib:${LD_LIBRARY_PATH} valgrind --tool=memcheck --log-file=valgrind_log --leak-check=yes --show-reachable=yes --track-fds=yes --fair-sched=try persistentstorel0test

- name: Generate coverage
working-directory: ${{github.workspace}}
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/L1-PersistentStore-sqlite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ name: L1-PersistentStore-sqlite
on:
push:
paths:
- PersistentStore/sqlite/**
- PersistentStore/**
- .github/workflows/*PersistentStore*.yml
pull_request:
paths:
- PersistentStore/sqlite/**
- PersistentStore/**
- .github/workflows/*PersistentStore*.yml

jobs:
build:
Expand All @@ -29,12 +31,12 @@ jobs:
- name: Build
working-directory: ${{github.workspace}}
run: |
cmake -S ${GITHUB_REPOSITORY}/PersistentStore/sqlite/l1test -B build/sqlitel1test -DCMAKE_INSTALL_PREFIX="install/usr" -DCMAKE_CXX_FLAGS="--coverage -Wall -Werror"
cmake -S ${GITHUB_REPOSITORY}/PersistentStore/sqlite/l1test -B build/sqlitel1test -DCMAKE_INSTALL_PREFIX="install" -DCMAKE_CXX_FLAGS="--coverage -Wall -Werror"
cmake --build build/sqlitel1test --target install
- name: Run
working-directory: ${{github.workspace}}
run: PATH=${PWD}/install/usr/bin:${PATH} LD_LIBRARY_PATH=${PWD}/install/usr/lib:${LD_LIBRARY_PATH} valgrind --tool=memcheck --log-file=valgrind_log --leak-check=yes --show-reachable=yes --track-fds=yes --fair-sched=try sqlitel1test
run: PATH=${PWD}/install/bin:${PATH} LD_LIBRARY_PATH=${PWD}/install/lib:${LD_LIBRARY_PATH} valgrind --tool=memcheck --log-file=valgrind_log --leak-check=yes --show-reachable=yes --track-fds=yes --fair-sched=try sqlitel1test

- name: Generate coverage
working-directory: ${{github.workspace}}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/L1-PersistentStore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ on:
push:
paths:
- PersistentStore/**
- .github/workflows/*PersistentStore*.yml
pull_request:
paths:
- PersistentStore/**
- .github/workflows/*PersistentStore*.yml

jobs:
build:
Expand All @@ -29,12 +31,12 @@ jobs:
- name: Build
working-directory: ${{github.workspace}}
run: |
cmake -S ${GITHUB_REPOSITORY}/PersistentStore/l1test -B build/persistentstorel1test -DCMAKE_INSTALL_PREFIX="install/usr" -DCMAKE_CXX_FLAGS="--coverage -Wall -Werror"
cmake -S ${GITHUB_REPOSITORY}/PersistentStore/l1test -B build/persistentstorel1test -DCMAKE_INSTALL_PREFIX="install" -DCMAKE_CXX_FLAGS="--coverage -Wall -Werror"
cmake --build build/persistentstorel1test --target install
- name: Run
working-directory: ${{github.workspace}}
run: PATH=${PWD}/install/usr/bin:${PATH} LD_LIBRARY_PATH=${PWD}/install/usr/lib:${LD_LIBRARY_PATH} valgrind --tool=memcheck --log-file=valgrind_log --leak-check=yes --show-reachable=yes --track-fds=yes --fair-sched=try persistentstorel1test
run: PATH=${PWD}/install/bin:${PATH} LD_LIBRARY_PATH=${PWD}/install/lib:${LD_LIBRARY_PATH} valgrind --tool=memcheck --log-file=valgrind_log --leak-check=yes --show-reachable=yes --track-fds=yes --fair-sched=try persistentstorel1test

- name: Generate coverage
working-directory: ${{github.workspace}}
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/L2-PersistentStore-grpc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ name: L2-PersistentStore-grpc
on:
push:
paths:
- PersistentStore/grpc/**
- PersistentStore/**
- .github/workflows/*PersistentStore*.yml
pull_request:
paths:
- PersistentStore/grpc/**
- PersistentStore/**
- .github/workflows/*PersistentStore*.yml

jobs:
build:
Expand All @@ -25,11 +27,9 @@ jobs:
- name: Build
working-directory: ${{github.workspace}}
run: |
cmake -S ${GITHUB_REPOSITORY}/PersistentStore/grpc/l2test -B build/grpcl2test -DCMAKE_INSTALL_PREFIX="install/usr" -DCMAKE_CXX_FLAGS="-Wall -Werror"
cmake -S ${GITHUB_REPOSITORY}/PersistentStore/grpc/l2test -B build/grpcl2test -DCMAKE_INSTALL_PREFIX="install" -DCMAKE_CXX_FLAGS="-Wall -Werror"
cmake --build build/grpcl2test --target install
# (Optional)
# Rebuild with real token (here: kToken = "Bearer TOKEN"):
# cmake --build build/grpcl2test --target install
# Run:
# PATH=${PWD}/install/usr/bin:${PATH} LD_LIBRARY_PATH=${PWD}/install/usr/lib:${LD_LIBRARY_PATH} valgrind --tool=memcheck --log-file=valgrind_log --leak-check=yes --show-reachable=yes --track-fds=yes --fair-sched=try grpcl2test
# Usage:
# Build with real token (here: "Bearer TOKEN")!!!
# PATH=${PWD}/install/bin:${PATH} LD_LIBRARY_PATH=${PWD}/install/lib:${LD_LIBRARY_PATH} valgrind --tool=memcheck --log-file=valgrind_log --leak-check=yes --show-reachable=yes --track-fds=yes --fair-sched=try grpcl2test
15 changes: 5 additions & 10 deletions .github/workflows/L2-PersistentStore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ on:
push:
paths:
- PersistentStore/**
- .github/workflows/*PersistentStore*.yml
pull_request:
paths:
- PersistentStore/**
- .github/workflows/*PersistentStore*.yml

jobs:
build:
Expand All @@ -29,17 +31,10 @@ jobs:
- name: Build
working-directory: ${{github.workspace}}
run: |
cmake -S ${GITHUB_REPOSITORY}/PersistentStore -B build/PersistentStore -DCMAKE_INSTALL_PREFIX="install/usr" -DCMAKE_CXX_FLAGS="-Wall -Werror" -DPLUGIN_PERSISTENTSTORE_PATH="/tmp/persistentstore/l2test/test"
cmake -S ${GITHUB_REPOSITORY}/PersistentStore -B build/PersistentStore -DCMAKE_INSTALL_PREFIX="install" -DCMAKE_CXX_FLAGS="-Wall -Werror" -DPLUGIN_PERSISTENTSTORE_PATH="/tmp/persistentstore/l2test/test"
cmake --build build/PersistentStore --target install
# (Optional)
# Thunder startup:
# PATH=${PWD}/install/usr/bin:${PATH} LD_LIBRARY_PATH=${PWD}/install/usr/lib:${LD_LIBRARY_PATH} valgrind --tool=memcheck --log-file=valgrind_log --leak-check=yes --show-reachable=yes --track-fds=yes --fair-sched=try WPEFramework -f -c ${PWD}/install/etc/WPEFramework/config.json
# Usage:
# PATH=${PWD}/install/bin:${PATH} LD_LIBRARY_PATH=${PWD}/install/lib:${LD_LIBRARY_PATH} valgrind --tool=memcheck --log-file=valgrind_log --leak-check=yes --show-reachable=yes --track-fds=yes --fair-sched=try Thunder -f -c ${PWD}/install/etc/Thunder/config.json
# (to stop press q & enter)
# API test:
# curl -d '{"jsonrpc":"2.0","id":0,"method":"org.rdk.PersistentStore.setValue","params":{"namespace":"test","key":"key1","value":"1","ttl":100}}' http://localhost:55555/jsonrpc
# curl -d '{"jsonrpc":"2.0","id":0,"method":"org.rdk.PersistentStore.getValue","params":{"namespace":"test","key":"key1"}}' http://localhost:55555/jsonrpc
# Crash test:
# kill -SIGFPE $(pidof WPEProcess)
# Deactivate test:
# curl -d '{"jsonrpc":"2.0","id":0,"method":"Controller.1.deactivate", "params":{"callsign":"org.rdk.PersistentStore"}}' http://localhost:55555/jsonrpc
30 changes: 15 additions & 15 deletions PersistentStore/l0test/PersistentStoreTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ using ::WPEFramework::JsonData::PersistentStore::GetValueResultData;
using ::WPEFramework::JsonData::PersistentStore::SetNamespaceStorageLimitParamsData;
using ::WPEFramework::JsonData::PersistentStore::SetValueParamsData;
using ::WPEFramework::Plugin::PersistentStore;
using ::WPEFramework::PluginHost::ILocalDispatcher;
using ::WPEFramework::PluginHost::IDispatcher;
using ::WPEFramework::PluginHost::IPlugin;
using ::WPEFramework::RPC::IStringIterator;
using ::WPEFramework::RPC::IteratorType;
Expand Down Expand Up @@ -79,7 +79,7 @@ TEST_F(APersistentStore, GetsValueInDeviceScopeViaJsonRpc)
};
PublishedServiceType<PersistentStoreImplementation> metadata(WPEFramework::Core::System::MODULE_NAME, 1, 0, 0);
ASSERT_THAT(plugin->Initialize(service), Eq(""));
auto jsonRpc = plugin->QueryInterface<ILocalDispatcher>();
auto jsonRpc = plugin->QueryInterface<IDispatcher>();
ASSERT_THAT(jsonRpc, NotNull());
DeleteKeyParamsInfo params;
params.Namespace = kAppId;
Expand Down Expand Up @@ -116,7 +116,7 @@ TEST_F(APersistentStore, GetsValueInAccountScopeViaJsonRpc)
};
PublishedServiceType<PersistentStoreImplementation> metadata(WPEFramework::Core::System::MODULE_NAME, 1, 0, 0);
ASSERT_THAT(plugin->Initialize(service), Eq(""));
auto jsonRpc = plugin->QueryInterface<ILocalDispatcher>();
auto jsonRpc = plugin->QueryInterface<IDispatcher>();
ASSERT_THAT(jsonRpc, NotNull());
DeleteKeyParamsInfo params;
params.Scope = WPEFramework::JsonData::PersistentStore::ScopeType::ACCOUNT;
Expand Down Expand Up @@ -154,7 +154,7 @@ TEST_F(APersistentStore, SetsValueInDeviceScopeViaJsonRpc)
};
PublishedServiceType<PersistentStoreImplementation> metadata(WPEFramework::Core::System::MODULE_NAME, 1, 0, 0);
ASSERT_THAT(plugin->Initialize(service), Eq(""));
auto jsonRpc = plugin->QueryInterface<ILocalDispatcher>();
auto jsonRpc = plugin->QueryInterface<IDispatcher>();
ASSERT_THAT(jsonRpc, NotNull());
SetValueParamsData params;
params.Namespace = kAppId;
Expand Down Expand Up @@ -189,7 +189,7 @@ TEST_F(APersistentStore, SetsValueInAccountScopeViaJsonRpc)
};
PublishedServiceType<PersistentStoreImplementation> metadata(WPEFramework::Core::System::MODULE_NAME, 1, 0, 0);
ASSERT_THAT(plugin->Initialize(service), Eq(""));
auto jsonRpc = plugin->QueryInterface<ILocalDispatcher>();
auto jsonRpc = plugin->QueryInterface<IDispatcher>();
ASSERT_THAT(jsonRpc, NotNull());
SetValueParamsData params;
params.Scope = WPEFramework::JsonData::PersistentStore::ScopeType::ACCOUNT;
Expand Down Expand Up @@ -223,7 +223,7 @@ TEST_F(APersistentStore, DeletesKeyInDeviceScopeViaJsonRpc)
};
PublishedServiceType<PersistentStoreImplementation> metadata(WPEFramework::Core::System::MODULE_NAME, 1, 0, 0);
ASSERT_THAT(plugin->Initialize(service), Eq(""));
auto jsonRpc = plugin->QueryInterface<ILocalDispatcher>();
auto jsonRpc = plugin->QueryInterface<IDispatcher>();
ASSERT_THAT(jsonRpc, NotNull());
DeleteKeyParamsInfo params;
params.Namespace = kAppId;
Expand Down Expand Up @@ -254,7 +254,7 @@ TEST_F(APersistentStore, DeletesKeyInAccountScopeViaJsonRpc)
};
PublishedServiceType<PersistentStoreImplementation> metadata(WPEFramework::Core::System::MODULE_NAME, 1, 0, 0);
ASSERT_THAT(plugin->Initialize(service), Eq(""));
auto jsonRpc = plugin->QueryInterface<ILocalDispatcher>();
auto jsonRpc = plugin->QueryInterface<IDispatcher>();
ASSERT_THAT(jsonRpc, NotNull());
DeleteKeyParamsInfo params;
params.Scope = WPEFramework::JsonData::PersistentStore::ScopeType::ACCOUNT;
Expand Down Expand Up @@ -285,7 +285,7 @@ TEST_F(APersistentStore, DeletesNamespaceInDeviceScopeViaJsonRpc)
};
PublishedServiceType<PersistentStoreImplementation> metadata(WPEFramework::Core::System::MODULE_NAME, 1, 0, 0);
ASSERT_THAT(plugin->Initialize(service), Eq(""));
auto jsonRpc = plugin->QueryInterface<ILocalDispatcher>();
auto jsonRpc = plugin->QueryInterface<IDispatcher>();
ASSERT_THAT(jsonRpc, NotNull());
DeleteNamespaceParamsInfo params;
params.Namespace = kAppId;
Expand Down Expand Up @@ -314,7 +314,7 @@ TEST_F(APersistentStore, DeletesNamespaceInAccountScopeViaJsonRpc)
};
PublishedServiceType<PersistentStoreImplementation> metadata(WPEFramework::Core::System::MODULE_NAME, 1, 0, 0);
ASSERT_THAT(plugin->Initialize(service), Eq(""));
auto jsonRpc = plugin->QueryInterface<ILocalDispatcher>();
auto jsonRpc = plugin->QueryInterface<IDispatcher>();
ASSERT_THAT(jsonRpc, NotNull());
DeleteNamespaceParamsInfo params;
params.Scope = WPEFramework::JsonData::PersistentStore::ScopeType::ACCOUNT;
Expand All @@ -339,7 +339,7 @@ TEST_F(APersistentStore, FlushesCacheViaJsonRpc)
};
PublishedServiceType<PersistentStoreImplementation> metadata(WPEFramework::Core::System::MODULE_NAME, 1, 0, 0);
ASSERT_THAT(plugin->Initialize(service), Eq(""));
auto jsonRpc = plugin->QueryInterface<ILocalDispatcher>();
auto jsonRpc = plugin->QueryInterface<IDispatcher>();
ASSERT_THAT(jsonRpc, NotNull());
string resultJsonStr;
EXPECT_THAT(jsonRpc->Invoke(0, 0, "", "flushCache", "", resultJsonStr), Eq(WPEFramework::Core::ERROR_NONE));
Expand All @@ -365,7 +365,7 @@ TEST_F(APersistentStore, GetsKeysInDeviceScopeViaJsonRpc)
};
PublishedServiceType<PersistentStoreImplementation> metadata(WPEFramework::Core::System::MODULE_NAME, 1, 0, 0);
ASSERT_THAT(plugin->Initialize(service), Eq(""));
auto jsonRpc = plugin->QueryInterface<ILocalDispatcher>();
auto jsonRpc = plugin->QueryInterface<IDispatcher>();
ASSERT_THAT(jsonRpc, NotNull());
DeleteNamespaceParamsInfo params;
params.Namespace = kAppId;
Expand Down Expand Up @@ -402,7 +402,7 @@ TEST_F(APersistentStore, GetsNamespacesInDeviceScopeViaJsonRpc)
};
PublishedServiceType<PersistentStoreImplementation> metadata(WPEFramework::Core::System::MODULE_NAME, 1, 0, 0);
ASSERT_THAT(plugin->Initialize(service), Eq(""));
auto jsonRpc = plugin->QueryInterface<ILocalDispatcher>();
auto jsonRpc = plugin->QueryInterface<IDispatcher>();
ASSERT_THAT(jsonRpc, NotNull());
string resultJsonStr;
ASSERT_THAT(jsonRpc->Invoke(0, 0, "", "getNamespaces", "", resultJsonStr), Eq(WPEFramework::Core::ERROR_NONE));
Expand Down Expand Up @@ -435,7 +435,7 @@ TEST_F(APersistentStore, GetsStorageSizesInDeviceScopeViaJsonRpc)
};
PublishedServiceType<PersistentStoreImplementation> metadata(WPEFramework::Core::System::MODULE_NAME, 1, 0, 0);
ASSERT_THAT(plugin->Initialize(service), Eq(""));
auto jsonRpc = plugin->QueryInterface<ILocalDispatcher>();
auto jsonRpc = plugin->QueryInterface<IDispatcher>();
ASSERT_THAT(jsonRpc, NotNull());
string resultJsonStr;
ASSERT_THAT(jsonRpc->Invoke(0, 0, "", "getStorageSizes", "", resultJsonStr), Eq(WPEFramework::Core::ERROR_NONE));
Expand Down Expand Up @@ -471,7 +471,7 @@ TEST_F(APersistentStore, GetsNamespaceStorageLimitInDeviceScopeViaJsonRpc)
};
PublishedServiceType<PersistentStoreImplementation> metadata(WPEFramework::Core::System::MODULE_NAME, 1, 0, 0);
ASSERT_THAT(plugin->Initialize(service), Eq(""));
auto jsonRpc = plugin->QueryInterface<ILocalDispatcher>();
auto jsonRpc = plugin->QueryInterface<IDispatcher>();
ASSERT_THAT(jsonRpc, NotNull());
DeleteNamespaceParamsInfo params;
params.Namespace = kAppId;
Expand Down Expand Up @@ -504,7 +504,7 @@ TEST_F(APersistentStore, SetsNamespaceStorageLimitInDeviceScopeViaJsonRpc)
};
PublishedServiceType<PersistentStoreImplementation> metadata(WPEFramework::Core::System::MODULE_NAME, 1, 0, 0);
ASSERT_THAT(plugin->Initialize(service), Eq(""));
auto jsonRpc = plugin->QueryInterface<ILocalDispatcher>();
auto jsonRpc = plugin->QueryInterface<IDispatcher>();
ASSERT_THAT(jsonRpc, NotNull());
SetNamespaceStorageLimitParamsData params;
params.Namespace = kAppId;
Expand Down
1 change: 0 additions & 1 deletion PersistentStore/l0test/ServiceMock.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ class ServiceMock : public WPEFramework::PluginHost::IShell,
MOCK_METHOD(void, DisableWebServer, (), (override));
MOCK_METHOD(WPEFramework::PluginHost::ISubSystem*, SubSystems, (), (override));
MOCK_METHOD(uint32_t, Submit, (const uint32_t, const WPEFramework::Core::ProxyType<WPEFramework::Core::JSON::IElement>&), (override));
MOCK_METHOD(void, Notify, (const string&), (override));
MOCK_METHOD(void, Notify, (const string&, const string&), (override));
MOCK_METHOD(void*, QueryInterfaceByCallsign, (const uint32_t, const string&), (override));
MOCK_METHOD(void, Register, (WPEFramework::PluginHost::IPlugin::INotification*), (override));
Expand Down
1 change: 0 additions & 1 deletion PersistentStore/l1test/ServiceMock.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ class ServiceMock : public WPEFramework::PluginHost::IShell,
MOCK_METHOD(void, DisableWebServer, (), (override));
MOCK_METHOD(WPEFramework::PluginHost::ISubSystem*, SubSystems, (), (override));
MOCK_METHOD(uint32_t, Submit, (const uint32_t, const WPEFramework::Core::ProxyType<WPEFramework::Core::JSON::IElement>&), (override));
MOCK_METHOD(void, Notify, (const string&), (override));
MOCK_METHOD(void, Notify, (const string&, const string&), (override));
MOCK_METHOD(void*, QueryInterfaceByCallsign, (const uint32_t, const string&), (override));
MOCK_METHOD(void, Register, (WPEFramework::PluginHost::IPlugin::INotification*), (override));
Expand Down
Loading