mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
A push subscription that fails (typically while the device has no network) is retried by restartListeners() on the next connectivity change. The values stored on the key meanwhile were never received, so the retry must ask the proxy for them, i.e. not be sent as a refresh. Co-authored-by: Copilot (Claude Opus 5.5) <223556219+Copilot@users.noreply.github.com>
24 lines
724 B
C++
24 lines
724 B
C++
// Copyright (c) 2014-2026 Savoir-faire Linux Inc.
|
|
// SPDX-License-Identifier: MIT
|
|
#pragma once
|
|
|
|
#include <cppunit/TestFixture.h>
|
|
#include <cppunit/extensions/HelperMacros.h>
|
|
|
|
namespace test {
|
|
|
|
class DhtProxyClientTester : public CppUnit::TestFixture
|
|
{
|
|
CPPUNIT_TEST_SUITE(DhtProxyClientTester);
|
|
CPPUNIT_TEST(testResubscribeUsesKeyRoute);
|
|
CPPUNIT_TEST(testSetPushNotificationTokenResubscribesWithNewToken);
|
|
CPPUNIT_TEST(testRestartListenersFetchesValuesAfterFailedSubscribe);
|
|
CPPUNIT_TEST_SUITE_END();
|
|
|
|
public:
|
|
void testResubscribeUsesKeyRoute();
|
|
void testSetPushNotificationTokenResubscribesWithNewToken();
|
|
void testRestartListenersFetchesValuesAfterFailedSubscribe();
|
|
};
|
|
|
|
} // namespace test
|