MCPcopy Create free account
hub / github.com/OSVR/OSVR-Core / TEST

Function TEST

tests/cplusplus/ClientKit/OverlappedContexts.cpp:35–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33#include "gtest/gtest.h"
34
35TEST(OverlappedContexts, TwoContexts) {
36 OSVR_ClientContext firstContext =
37 osvrClientInit("com.osvr.test.firstContext");
38 OSVR_ClientContext secondContext =
39 osvrClientInit("com.osvr.test.secondContext");
40 ASSERT_EQ(OSVR_RETURN_SUCCESS, osvrClientShutdown(firstContext));
41 osvrClientUpdate(secondContext);
42 ASSERT_EQ(OSVR_RETURN_SUCCESS, osvrClientShutdown(secondContext));
43}

Callers

nothing calls this directly

Calls 3

osvrClientInitFunction · 0.85
osvrClientShutdownFunction · 0.85
osvrClientUpdateFunction · 0.85

Tested by

no test coverage detected