Initial checkin of generic test app code and constants used by GetRecentApps tests.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1523 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
bd723e1df8
commit
ff0ed19cd1
17
src/tests/kits/app/broster/testapps/RecentAppsTestApp.cpp
Normal file
17
src/tests/kits/app/broster/testapps/RecentAppsTestApp.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
#include "RecentAppsTestApp.h"
|
||||
|
||||
// Test app signatures
|
||||
const char *kRecentAppsTestAppSigs[] = {
|
||||
"application/x-vnd.obos-recent-apps-test-qualifying",
|
||||
"application/x-vnd.obos-recent-apps-test-non-qualifying",
|
||||
"application/x-vnd.obos-recent-apps-test-empty",
|
||||
"application/x-vnd.obos-recent-apps-test-control",
|
||||
};
|
||||
|
||||
const char *kRecentAppsTestAppFilenames[] = {
|
||||
"RecentAppsTestQualifyingApp",
|
||||
"RecentAppsTestNonQualifyingApp",
|
||||
"RecentAppsTestEmptyApp",
|
||||
"RecentAppsTestControlApp",
|
||||
};
|
||||
|
30
src/tests/kits/app/broster/testapps/RecentAppsTestApp.h
Normal file
30
src/tests/kits/app/broster/testapps/RecentAppsTestApp.h
Normal file
@ -0,0 +1,30 @@
|
||||
#ifndef RECENT_APPS_TEST_APP_H
|
||||
#define RECENT_APPS_TEST_APP_H
|
||||
|
||||
#include <Application.h>
|
||||
|
||||
class RecentAppsTestApp : public BApplication {
|
||||
public:
|
||||
RecentAppsTestApp(const char *sig) : BApplication(sig) {}
|
||||
|
||||
virtual void ReadyToRun() {
|
||||
Quit();
|
||||
}
|
||||
};
|
||||
|
||||
// App indices, sigs, and filenames:
|
||||
// 0: Qualifying: BEOS:APP_FLAGS == (B_SINGLE_LAUNCH || B_MULTIPLE_LAUNCH || B_EXCLUSIVE_LAUNCH)
|
||||
// 1: Non-qualifying: BEOS:APP_FLAGS &== B_BACKGROUND_APP || B_ARGV_ONLY
|
||||
// 2: Empty: No BEOS:APP_FLAGS attribute
|
||||
// 3: Control: (same as qualifying, but with a different sig to make sure qualifying apps work correctly)
|
||||
enum RecentAppsTestAppId {
|
||||
kQualifyingApp = 0,
|
||||
kNonQualifyingApp,
|
||||
kEmptyApp,
|
||||
kControlApp,
|
||||
};
|
||||
extern const char *kRecentAppsTestAppSigs[];
|
||||
extern const char *kRecentAppsTestAppFilenames[];
|
||||
|
||||
|
||||
#endif
|
Loading…
x
Reference in New Issue
Block a user