#include "component_based/port/port.hh"
namespace {
-using namespace component_based;
-class PortStub : public Port,
- public Port::IEvent {
+class PortStub : public component_based::Port,
+ public component_based::Port::IEvent {
public:
- PortStub(std::string name)
+ explicit PortStub(std::string name)
: Port(std::move(name), this) {
}
}
private:
- void OnRequest(const std::shared_ptr<SenderInfo>& sender,
+ void OnRequest(const std::shared_ptr<component_based::SenderInfo>& sender,
const std::shared_ptr<tizen_base::Parcel>& request) override {
if (request_cb_) {
parcel_h parcel = static_cast<parcel_h>(request.get());
}
}
- void OnSyncRequest(const std::shared_ptr<SenderInfo>& sender,
+ void OnSyncRequest(const std::shared_ptr<component_based::SenderInfo>& sender,
const std::shared_ptr<tizen_base::Parcel>& request,
std::shared_ptr<tizen_base::Parcel>& response) override {
if (sync_request_cb_) {
_E("Out of memory");
return COMPONENT_PORT_ERROR_OUT_OF_MEMORY;
}
- } catch (Exception& e) {
+ } catch (component_based::Exception& e) {
_E("Failed to create port");
return COMPONENT_PORT_ERROR_IO_ERROR;
}