2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 * @author Bartlomiej Grzelewski (b.grzelewski@samsung.com)
20 * @brief Stubs used by PolicyInformationPoint.h
22 #ifndef _TEST_ACE_TESTS_INTERFACE_H_
23 #define _TEST_ACE_TESTS_INTERFACE_H_
26 #include <dpl/ace/WRT_INTERFACE.h>
32 class WebRuntimeImp : public IWebRuntime {
34 int getAttributesValues(
35 const Request &request,
36 std::list<ATTRIBUTE> *attribute);
37 std::string getSessionId(const Request &) { return std::string(); }
40 class ResourceInformationImp : public IResourceInformation {
42 int getAttributesValues(
43 const Request &request,
44 std::list<ATTRIBUTE> *attribute);
47 class OperationSystemImp : public IOperationSystem {
49 int getAttributesValues(
50 const Request &request,
51 std::list<ATTRIBUTE> *attribute);
54 class FunctionParamImpl : public IFunctionParam
57 virtual int getAttributesValues(const Request & /* request*/,
58 std::list<ATTRIBUTE> *attributes);
59 void addAttribute(const std::string &key,
60 const std::string &value)
62 paramMap.insert(make_pair(key, value));
64 virtual ~FunctionParamImpl() {}
66 typedef std::multimap<std::string, std::string> ParamMap;
70 #endif // _TEST_ACE_TESTS_INTERFACE_H_