summaryrefslogtreecommitdiff
path: root/indra/test/lltestapp.h
blob: 382516cd2bc3aaa6f567434bbda9ea46a2c8b963 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/**
 * @file   lltestapp.h
 * @author Nat Goodspeed
 * @date   2019-10-21
 * @brief  LLApp subclass useful for testing.
 * 
 * $LicenseInfo:firstyear=2019&license=viewerlgpl$
 * Copyright (c) 2019, Linden Research, Inc.
 * $/LicenseInfo$
 */

#if ! defined(LL_LLTESTAPP_H)
#define LL_LLTESTAPP_H

#include "llapp.h"

/**
 * LLTestApp is a dummy LLApp that simply sets LLApp::isRunning() for anyone
 * who cares.
 */
class LLTestApp: public LLApp
{
public:
    LLTestApp()
    {
        setStatus(APP_STATUS_RUNNING);
    }

    bool init()    { return true; }
    bool cleanup() { return true; }
    bool frame()   { return true; }
};

#endif /* ! defined(LL_LLTESTAPP_H) */