Rise
The Vieneo Province
Loading...
Searching...
No Matches
Waypoint Protocol tests

Checks waypoint text, packet layout and download lifecycle.

Subsystem: Networking, protocols and social integration
Fixture/harness: waypointprotocoltests
Setup: The standalone WaypointProtocolTests harness owns the inputs, local helpers and assertion sink used by the case files below.

Build/entry point: Tests/WaypointProtocolTests.vcxproj; declared configurations: Debug|Win32.

WaypointProtocolTests.cpp

Source: Tests/WaypointProtocolTests.cpp

Test Text

Fixture: Waypoint Protocol tests
Case symbol: TestText
Source: Tests/WaypointProtocolTests.cpp:15

Test
Checks Unicode waypoint names, safe truncation and preservation of complete surrogate pairs.
Source check messages (including original failure wording)

  • Unicode waypoint name changed
  • Long name was not safely truncated
  • Fitting surrogate pair was lost
  • Truncation split a surrogate pair
  • Empty waypoint name was not preserved
  • Chat sharing did not preserve Unicode
  • Chat sharing changed waypoint coordinates

Test Download Lifecycle

Fixture: Waypoint Protocol tests
Case symbol: TestDownloadLifecycle
Source: Tests/WaypointProtocolTests.cpp:53

Test
Checks waypoint downloads are scheduled only when loading and online state permit them.
Source check messages (including original failure wording)

  • Requested waypoints before loading scheduled them
  • Initial loading did not schedule the waypoint download
  • Requested waypoints while the server still considers us offline
  • Late login conclusion did not release the queued download
  • Sent duplicate request in the next frame
  • Retried before the idle timeout
  • A silent/rejected download was never retried
  • Retried while snapshot records were arriving
  • Resource reload restarted the in-flight download
  • Resource reload reset request timing
  • A partially received snapshot could not recover from a stall
  • Snapshot terminator did not complete the download
  • Duplicate snapshot terminator changed state
  • Resource reload re-requested a completed session snapshot
  • New connection bypassed login completion
  • New connection could not download waypoints
  • Empty snapshot completion failed to stop retries
  • Unsolicited selection satisfied an unsent download
  • Early conclusion skipped loading initialization
  • Conclusion arriving before stage 80 prevented the download
  • Early snapshot terminator was rejected
  • Missing selected record unexpectedly resolved
  • Reload restarted a snapshot with delayed records
  • Reload/early snapshot completion lost the delayed active waypoint

Test Navigation Capability

Fixture: Waypoint Protocol tests
Case symbol: TestNavigationCapability
Source: Tests/WaypointProtocolTests.cpp:113

Test
Test Navigation Capability: Cockpit without StreetView must still select and save the waypoint; Cockpit without StreetView must opt out of server routing; Equipped cockpit must retain the legacy routing request.
Source check messages (including original failure wording)

  • Cockpit without StreetView must still select and save the waypoint
  • Cockpit without StreetView must opt out of server routing
  • Equipped cockpit must retain the legacy routing request
  • Navigation opt-out must not change the selected target or management operation

Test Selection Packet Ordering

Fixture: Waypoint Protocol tests
Case symbol: TestSelectionPacketOrdering
Source: Tests/WaypointProtocolTests.cpp:129

Test
Checks current selection survives delayed/missing records and only the matching arrival resolves a pending selection.
Source check messages (including original failure wording)

  • Missing record discarded the current target or exposed an invalid index
  • An unrelated record satisfied the pending selection
  • Selection was not restored when the delayed record arrived
  • Resolved selection was applied again after a local target change
  • Data-before-selection ordering failed
  • Server selection of the temporary waypoint failed
  • Superseded selection was applied
  • Newest pending selection was lost
  • An available new target did not replace the pending target
  • An older delayed record replaced the newer selection
  • Cancelled server selection replaced a local choice or crossed a reload
  • Empty download produced an invalid target index
  • Selection received before an empty download was not retained

Test Folder Removal

Fixture: Waypoint Protocol tests
Case symbol: TestFolderRemoval
Source: Tests/WaypointProtocolTests.cpp:188

Test
Checks protected/last folders cannot be removed and rejected removal preserves folder ordering.
Source check messages (including original failure wording)

  • Enabled removal of the only folder
  • Removed the temporary-waypoint folder
  • Removed a populated folder
  • Accepted invalid tab bounds
  • Rejected removal changed folder order
  • Could not remove an empty middle folder
  • Removing a middle folder lost stable group IDs or the reusable slot
  • Populated shifted folders were considered empty
  • Folder removal modified waypoint metadata
  • Saved folder order did not survive restart/server redownload
  • Accepted a server group outside the tab capacity
  • Received waypoint did not protect a reused folder
  • Could not remove the empty rightmost folder
  • Empty folder after deleting its last waypoint could not be removed
  • Could not reduce to exactly one folder
  • Repeated remove/add cycles duplicated a server group
  • Duplicate persisted groups did not fall back to legacy order
  • Accepted an out-of-range persisted group
  • Allowed the temporary-waypoint group to move
  • Legacy GUI configuration did not retain its original folder order

Test Wire Packet

Fixture: Waypoint Protocol tests
Case symbol: TestWirePacket
Source: Tests/WaypointProtocolTests.cpp:257

Test
Checks wire offsets and decoding of waypoint flags, coordinates and metadata.
Source check messages (including original failure wording)

  • Wire name decoded incorrectly
  • Waypoint flags have incorrect wire offsets
  • Wire coordinates decoded incorrectly
  • Waypoint metadata has incorrect wire offsets
  • Upload changed payload bytes or packet type