summaryrefslogtreecommitdiff
path: root/org.genivi.commonapi.core.verification/src/stub/StabilitySPStub.cpp
blob: 472d39a0b8842b2e85ff7a79bbf782f480764be5 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/* Copyright (C) 2015 BMW Group
 * Author: JP Ikaheimonen (jp_ikaheimonen@mentor.com)
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "StabilitySPStub.h"

#ifndef WIN32
#include <unistd.h>
#endif

namespace v1_0 {
namespace commonapi {
namespace stability {
namespace sp {

using namespace v1_0::commonapi::stability::sp;

StabilitySPStub::StabilitySPStub() {
}

StabilitySPStub::~StabilitySPStub() {
}

void StabilitySPStub::testMethod(const std::shared_ptr<CommonAPI::ClientId> clientId,
        TestInterface::tArray tArrayIn,
        testMethodReply_t _reply) {

        TestInterface::tArray tArrayOut;

        tArrayOut = tArrayIn;

        fireTestBroadcastEvent(
            tArrayIn
        );

        _reply(tArrayOut);


}

void StabilitySPStub::setTestValues(TestInterface::tArray x) {
    setTestAttributeAttribute(x);
}

} /* namespace v1_0 */
} /* namespace sp */
} /* namespace stability */
} /* namespace commonapi */