PageRenderTime 68ms CodeModel.GetById 37ms app.highlight 3ms RepoModel.GetById 16ms app.codeStats 1ms

/indra/newview/tests/lltextureinfodetails_test.cpp

https://bitbucket.org/lindenlab/viewer-beta/
C++ | 92 lines | 23 code | 13 blank | 56 comment | 0 complexity | 73472e718422ff5fc89d26f0e1f8fc22 MD5 | raw file
 1/** 
 2 * @file llwtextureinfodetails_test.cpp
 3 * @author Si & Gabriel
 4 * @date 2009-03-30
 5 *
 6 * $LicenseInfo:firstyear=2006&license=viewerlgpl$
 7 * Second Life Viewer Source Code
 8 * Copyright (C) 2010, Linden Research, Inc.
 9 * 
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public
12 * License as published by the Free Software Foundation;
13 * version 2.1 of the License only.
14 * 
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18 * Lesser General Public License for more details.
19 * 
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with this library; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
23 * 
24 * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA
25 * $/LicenseInfo$
26 */
27
28// Precompiled header: almost always required for newview cpp files
29#include "../llviewerprecompiledheaders.h"
30// Class to test
31#include "../lltextureinfodetails.h"
32// Dependencies
33
34// Tut header
35#include "../test/lltut.h"
36
37// -------------------------------------------------------------------------------------------
38// Stubbing: Declarations required to link and run the class being tested
39// Notes: 
40// * Add here stubbed implementation of the few classes and methods used in the class to be tested
41// * Add as little as possible (let the link errors guide you)
42// * Do not make any assumption as to how those classes or methods work (i.e. don't copy/paste code)
43// * A simulator for a class can be implemented here. Please comment and document thoroughly.
44
45
46// End Stubbing
47// -------------------------------------------------------------------------------------------
48
49// -------------------------------------------------------------------------------------------
50// TUT
51// -------------------------------------------------------------------------------------------
52
53namespace tut
54{
55	// Test wrapper declarations
56	struct textureinfodetails_test
57	{
58		// Constructor and destructor of the test wrapper
59		textureinfodetails_test()
60		{
61		}
62		~textureinfodetails_test()
63		{
64		}
65	};
66
67	// Tut templating thingamagic: test group, object and test instance
68	typedef test_group<textureinfodetails_test> textureinfodetails_t;
69	typedef textureinfodetails_t::object textureinfodetails_object_t;
70	tut::textureinfodetails_t tut_textureinfodetails("LLTextureInfoDetails");
71
72	
73	// ---------------------------------------------------------------------------------------
74	// Test functions
75	// Notes:
76	// * Test as many as you possibly can without requiring a full blown simulation of everything
77	// * The tests are executed in sequence so the test instance state may change between calls
78	// * Remember that you cannot test private methods with tut
79	// ---------------------------------------------------------------------------------------
80
81	// ---------------------------------------------------------------------------------------
82	// Test the LLTextureInfo
83	// ---------------------------------------------------------------------------------------
84
85
86	// Test instantiation
87	template<> template<>
88	void textureinfodetails_object_t::test<1>()
89	{
90		ensure("have we crashed?", true);
91	}
92}