Fission FSN
Loading...
Searching...
No Matches
fsCloudSaveSyncTests.cpp File Reference
#include <doctest.h>
#include <fsPlatform/cloudsave/fsCCloudSaveSync.h>
#include <fsPlatform/cloudsave/src/impl/localFolder/fsCloudSaveServiceLocalFolder.h>
#include <chrono>
#include <fstream>
#include <iterator>
#include <memory>
#include <random>
#include <string>
#include <vector>
Include dependency graph for fsCloudSaveSyncTests.cpp:

Functions

 TEST_CASE ("cloud save blob round-trips and strips newlines from the header")
 TEST_CASE ("first save on an empty cloud links the profile and uploads after the debounce")
 TEST_CASE ("a stream of saves cannot postpone the upload past one debounce")
 TEST_CASE ("a new device restores the cloud profile")
 TEST_CASE ("an existing profile with the cloud's player name is linked, newest wins")
 TEST_CASE ("fast-forward: cloud moved on, local did not")
 TEST_CASE ("local moved on, cloud did not: upload at boot without waiting for the debounce")
 TEST_CASE ("true conflict: the newer side wins and the loser is kept as a backup")
 TEST_CASE ("a device with a future clock wins and is logged")
 TEST_CASE ("saving an unlinked profile never uploads it")
 TEST_CASE ("deleting the linked profile removes the cloud slot and frees the link")
 TEST_CASE ("deleting the linked profile while its upload is in flight leaves the cloud empty")
 TEST_CASE ("a boot pull that times out keeps the session local only")
 TEST_CASE ("an unavailable provider makes sync a no-op")
 TEST_CASE ("shutdown flushes a pending upload")

Function Documentation

◆ TEST_CASE() [1/15]

TEST_CASE ( "a boot pull that times out keeps the session local only" )

◆ TEST_CASE() [2/15]

TEST_CASE ( "a device with a future clock wins and is logged" )

◆ TEST_CASE() [3/15]

TEST_CASE ( "a new device restores the cloud profile" )

◆ TEST_CASE() [4/15]

TEST_CASE ( "a stream of saves cannot postpone the upload past one debounce" )

◆ TEST_CASE() [5/15]

TEST_CASE ( "an existing profile with the cloud's player name is linked,
newest wins"  )

◆ TEST_CASE() [6/15]

TEST_CASE ( "an unavailable provider makes sync a no-op" )

◆ TEST_CASE() [7/15]

TEST_CASE ( "cloud save blob round-trips and strips newlines from the header" )

◆ TEST_CASE() [8/15]

TEST_CASE ( "deleting the linked profile removes the cloud slot and frees the link" )

◆ TEST_CASE() [9/15]

TEST_CASE ( "deleting the linked profile while its upload is in flight leaves the cloud empty" )

◆ TEST_CASE() [10/15]

TEST_CASE ( "fast-forward: cloud moved on,
local did not"  )

◆ TEST_CASE() [11/15]

TEST_CASE ( "first save on an empty cloud links the profile and uploads after the debounce" )

◆ TEST_CASE() [12/15]

TEST_CASE ( "local moved on,
cloud did not:upload at boot without waiting for the debounce"  )

◆ TEST_CASE() [13/15]

TEST_CASE ( "saving an unlinked profile never uploads it" )

◆ TEST_CASE() [14/15]

TEST_CASE ( "shutdown flushes a pending upload" )

◆ TEST_CASE() [15/15]

TEST_CASE ( "true conflict: the newer side wins and the loser is kept as a backup" )