code check 问题修复

Signed-off-by: wangyang2022 <wangyang412@huawei.com>
Change-Id: I8089413b0e7a9ba525f3f91bd6f06bc7331eae10
This commit is contained in:
wangyang2022 2022-11-22 10:29:44 +08:00
parent 3f575d425b
commit 612fb8da87
5 changed files with 9 additions and 9 deletions

View File

@ -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();

View File

@ -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();

View File

@ -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);

View File

@ -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;
}

View File

@ -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;