From 63b3c321fd41a011d18bb063e720bc5c838e0b0f Mon Sep 17 00:00:00 2001 From: liuyanzhi Date: Mon, 10 Apr 2023 06:58:20 +0000 Subject: [PATCH] fixed ff815c4 from https://gitee.com/liuyanzhi2020/notification_ans_standard/pulls/969 fix tdd Signed-off-by: liuyanzhi Change-Id: I844c8dc4e8a65d1d7bc81d17e493edd20741ba68 --- .../test/moduletest/ans_innerkits_module_publish_test.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frameworks/test/moduletest/ans_innerkits_module_publish_test.cpp b/frameworks/test/moduletest/ans_innerkits_module_publish_test.cpp index 74c0775e1..ba34ab86d 100644 --- a/frameworks/test/moduletest/ans_innerkits_module_publish_test.cpp +++ b/frameworks/test/moduletest/ans_innerkits_module_publish_test.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -99,7 +99,9 @@ public: void OnCanceled(const std::shared_ptr &request, const std::shared_ptr &sortingMap, int deleteReason) override - {} + { + OnCanceledReceived = true; + } void OnConsumed(const std::shared_ptr &request) override { -- Gitee