mirror of
https://gitee.com/openharmony/ability_dmsfwk
synced 2024-11-23 14:30:21 +00:00
code check 问题修复
Signed-off-by: wangyang2022 <wangyang412@huawei.com> Change-Id: I8089413b0e7a9ba525f3f91bd6f06bc7331eae10
This commit is contained in:
parent
3f575d425b
commit
612fb8da87
@ -66,8 +66,8 @@ void DMSNetworkAdapterTest::SetUpTestCase()
|
||||
|
||||
void DMSNetworkAdapterTest::TearDownTestCase()
|
||||
{
|
||||
//Wait until all asyn tasks are completed before exiting the test suite
|
||||
auto caseDoneNotifyTask = [&]() {
|
||||
// Wait until all asyn tasks are completed before exiting the test suite
|
||||
auto caseDoneNotifyTask = []() {
|
||||
std::lock_guard<std::mutex> autoLock(caseDoneLock_);
|
||||
isCaseDone_ = true;
|
||||
caseDoneCondition_.notify_all();
|
||||
|
@ -86,8 +86,8 @@ std::condition_variable DtbschedmgrDeviceInfoStorageTest::caseDoneCondition_;
|
||||
|
||||
void DtbschedmgrDeviceInfoStorageTest::TearDownTestCase()
|
||||
{
|
||||
//Wait until all asyn tasks are completed before exiting the test suite
|
||||
auto caseDoneNotifyTask = [&]() {
|
||||
// Wait until all asyn tasks are completed before exiting the test suite
|
||||
auto caseDoneNotifyTask = []() {
|
||||
std::lock_guard<std::mutex> autoLock(caseDoneLock_);
|
||||
isCaseDone_ = true;
|
||||
caseDoneCondition_.notify_all();
|
||||
|
@ -49,14 +49,14 @@ void DistributedAbilityManagerServiceTest::SetUpTestCase()
|
||||
|
||||
void DistributedAbilityManagerServiceTest::TearDownTestCase()
|
||||
{
|
||||
//Wait until all asyn tasks are completed before exiting the test suite
|
||||
auto caseDoneNotifyTask = [&]() {
|
||||
// Wait until all asyn tasks are completed before exiting the test suite
|
||||
auto caseDoneNotifyTask = []() {
|
||||
std::lock_guard<std::mutex> autoLock(caseDoneLock_);
|
||||
isCaseDone_ = true;
|
||||
caseDoneCondition_.notify_all();
|
||||
};
|
||||
if (DistributedSchedMissionManager::GetInstance().distributedDataStorage_ != nullptr) {
|
||||
std::shared_ptr<AppExecFwk::EventHandler> dmsDataStorageHandler =
|
||||
std::shared_ptr<AppExecFwk::EventHandler> dmsDataStorageHandler =
|
||||
DistributedSchedMissionManager::GetInstance().distributedDataStorage_->dmsDataStorageHandler_;
|
||||
if (dmsDataStorageHandler != nullptr) {
|
||||
dmsDataStorageHandler->PostTask(caseDoneNotifyTask);
|
||||
|
@ -349,7 +349,7 @@ HWTEST_F(DSchedContinuationTest, ContinueLocalMission_001, TestSize.Level1)
|
||||
WantParams wantParams;
|
||||
int32_t ret = DistributedSchedService::GetInstance().ContinueLocalMission(deviceId,
|
||||
missionId, callback, wantParams);
|
||||
EXPECT_TRUE(INVALID_PARAMETERS_ERR == ret);
|
||||
EXPECT_NE(ret, ERR_OK);
|
||||
DTEST_LOG << "DSchedContinuationTest ContinueLocalMission_001 end" << std::endl;
|
||||
}
|
||||
|
||||
|
@ -29,7 +29,7 @@ public:
|
||||
class MockRemoteStub : public IRemoteStub<MockRemoteInterface> {
|
||||
public:
|
||||
~MockRemoteStub() = default;
|
||||
virtual int32_t OnRemoteRequest(uint32_t code, MessageParcel& data, MessageParcel& reply,
|
||||
int32_t OnRemoteRequest(uint32_t code, MessageParcel& data, MessageParcel& reply,
|
||||
MessageOption& option) override
|
||||
{
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user