summaryrefslogtreecommitdiff
path: root/tests/test-resource-set
diff options
context:
space:
mode:
authorWolf Bergenheim <ext-wolf.2.bergenheim@nokia.com>2010-02-11 11:21:01 +0200
committerWolf Bergenheim <ext-wolf.2.bergenheim@nokia.com>2010-02-11 11:21:01 +0200
commit346a7524047a1aa1ec64810abb8b0243ae90c3bb (patch)
treeff122182776b0a08bea4e5074d39ed3cd9a76416 /tests/test-resource-set
parent7fc9e4c25b87945487723e594bb5320bd253526f (diff)
astyled the code
Diffstat (limited to 'tests/test-resource-set')
-rw-r--r--tests/test-resource-set/test-resource-set.cpp8
-rw-r--r--tests/test-resource-set/test-resource-set.h28
2 files changed, 18 insertions, 18 deletions
diff --git a/tests/test-resource-set/test-resource-set.cpp b/tests/test-resource-set/test-resource-set.cpp
index e9ee74b..529d9e0 100644
--- a/tests/test-resource-set/test-resource-set.cpp
+++ b/tests/test-resource-set/test-resource-set.cpp
@@ -2,7 +2,7 @@
Resource * TestResourceSet::resourceFromType(ResourceType type)
{
- switch(type) {
+ switch (type) {
case AudioPlaybackType:
return audioResource;
case AudioRecorderType:
@@ -88,7 +88,7 @@ void TestResourceSet::testIdentifier()
void TestResourceSet::testAddResource()
{
- for(int i=0;i<NumberOfTypes;i++) {
+ for (int i = 0;i < NumberOfTypes;i++) {
ResourceType type = (ResourceType)i;
Resource *resource = resourceFromType(type);
resourceSet->addResource(resource);
@@ -155,11 +155,11 @@ void TestResourceSet::testContainsSet()
QList<Resource *> resources;
types << AudioPlaybackType << VideoPlaybackType
- << AudioRecorderType << VideoRecorderType << LensCoverType;
+ << AudioRecorderType << VideoRecorderType << LensCoverType;
subset << AudioPlaybackType << VideoPlaybackType << LensCoverType;
resources << audioResource << videoResource
- << audioRecorderResource << videoRecorderResource << lensCoverResource;
+ << audioRecorderResource << videoRecorderResource << lensCoverResource;
resourceSet->addResources(resources);
diff --git a/tests/test-resource-set/test-resource-set.h b/tests/test-resource-set/test-resource-set.h
index 5c6498b..24ca0c7 100644
--- a/tests/test-resource-set/test-resource-set.h
+++ b/tests/test-resource-set/test-resource-set.h
@@ -8,9 +8,9 @@ using namespace ResourcePolicy;
class TestResourceSet: public QObject
{
- Q_OBJECT
+ Q_OBJECT
private:
- ResourceSet *resourceSet;
+ ResourceSet *resourceSet;
AudioResource *audioResource;
AudioRecorderResource *audioRecorderResource;
@@ -27,24 +27,24 @@ private:
Resource * resourceFromType(ResourceType type);
public:
- TestResourceSet();
- ~TestResourceSet();
+ TestResourceSet();
+ ~TestResourceSet();
+
-
private slots:
- void init();
- void cleanup();
+ void init();
+ void cleanup();
- void testIdentifier();
+ void testIdentifier();
- void testAddResource();
- void testAddResources();
- void testDelResource();
+ void testAddResource();
+ void testAddResources();
+ void testDelResource();
- void testContainsSingle();
- void testDoesNotContainSingle();
- void testContainsSet();
+ void testContainsSingle();
+ void testDoesNotContainSingle();
+ void testContainsSet();
};
#endif