mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-07 06:14:04 +02:00
stubbery for CollisionRenderMeshCacheTests
This commit is contained in:
parent
e473edff4a
commit
c1216cbcaf
3 changed files with 66 additions and 1 deletions
|
@ -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 ()
|
||||
|
||||
|
|
41
tests/physics/src/CollisionRenderMeshCacheTests.cpp
Normal file
41
tests/physics/src/CollisionRenderMeshCacheTests.cpp
Normal 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
|
||||
|
||||
}
|
||||
|
24
tests/physics/src/CollisionRenderMeshCacheTests.h
Normal file
24
tests/physics/src/CollisionRenderMeshCacheTests.h
Normal 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
|
Loading…
Reference in a new issue