From 4fc7a6a344ff77aeb4b7faa7af83da4146347ae9 Mon Sep 17 00:00:00 2001 From: linianlin Date: Fri, 8 May 2026 12:13:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=AF=91=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/CMakeLists.txt | 2 +- tests/test_app.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 26bbfb0..4cb68f5 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -11,7 +11,7 @@ FetchContent_Declare( # For Windows: Prevent overriding the parent project's compiler/linker settings set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) FetchContent_MakeAvailable(googletest) -set(CMAKE_CXX_STANDARD 14) +set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../include) diff --git a/tests/test_app.cpp b/tests/test_app.cpp index 7c6eb8a..b70a0bf 100644 --- a/tests/test_app.cpp +++ b/tests/test_app.cpp @@ -23,7 +23,7 @@ protected: TEST_F(CmsEngineTest, TestPushNotification_Normal) { NotificationMessage msg; msg.id = "NOTIF-001"; - msg.content = "Test notification"; + msg.summary = "Test notification"; msg.isRead = false; EXPECT_NO_THROW(engine_->pushNotification(msg)); @@ -41,12 +41,12 @@ TEST_F(CmsEngineTest, TestGetUnreadNotifications_Empty) { TEST_F(CmsEngineTest, TestGetUnreadNotifications_Mixed) { NotificationMessage readMsg; readMsg.id = "READ-001"; - readMsg.content = "Read message"; + readMsg.summary = "Read message"; readMsg.isRead = true; NotificationMessage unreadMsg; unreadMsg.id = "UNREAD-001"; - unreadMsg.content = "Unread message"; + unreadMsg.summary = "Unread message"; unreadMsg.isRead = false; engine_->pushNotification(readMsg);