stubbery for CollisionRenderMeshCacheTests

This commit is contained in:
Andrew Meadows 2016-07-14 15:05:47 -07:00
parent e473edff4a
commit c1216cbcaf
3 changed files with 66 additions and 1 deletions

View file

@ -2,7 +2,7 @@
# Declare dependencies
macro (SETUP_TESTCASE_DEPENDENCIES)
target_bullet()
link_hifi_libraries(shared physics)
link_hifi_libraries(shared physics gpu model)
package_libraries_for_deployment()
endmacro ()

View file

@ -0,0 +1,41 @@
//
// CollisionRenderMeshCacheTests.cpp
// tests/physics/src
//
// Created by Andrew Meadows on 2014.10.30
// Copyright 2014 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include <iostream>
#include <CollisionRenderMeshCache.h>
#include <StreamUtils.h>
#include "CollisionRenderMeshCacheTests.h"
QTEST_MAIN(CollisionRenderMeshCacheTests)
void CollisionRenderMeshCacheTests::test001() {
CollisionRenderMeshCache cache;
// create a compound shape
int32_t numSubShapes = 3;
// get the mesh
// get the mesh again
// forget the mesh once
// collect garbage
// forget the mesh a second time
// collect garbage
}

View file

@ -0,0 +1,24 @@
//
// CollisionRenderMeshCacheTests.h
// tests/physics/src
//
// Created by Andrew Meadows on 2014.10.30
// Copyright 2014 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#ifndef hifi_CollisionRenderMeshCacheTests_h
#define hifi_CollisionRenderMeshCacheTests_h
#include <QtTest/QtTest>
class CollisionRenderMeshCacheTests : public QObject {
Q_OBJECT
private slots:
void test001();
};
#endif // hifi_CollisionRenderMeshCacheTests_h