@@ -28,19 +28,17 @@ namespace Test {
28
28
* This is not a Global API and should only be used for (Unit) Testing.
29
29
*/
30
30
31
- using namespace app ;
32
-
33
31
class ReadClientTestAccess
34
32
{
35
33
36
34
public:
37
- ReadClientTestAccess (ReadClient * aReadClient) : mpReadClient(aReadClient) {}
35
+ ReadClientTestAccess (app:: ReadClient * aReadClient) : mpReadClient(aReadClient) {}
38
36
39
37
Messaging::ExchangeHolder & GetExchange () { return mpReadClient->mExchange ; }
40
38
Messaging::ExchangeManager * GetExchangeMgr () { return mpReadClient->mpExchangeMgr ; }
41
39
SubscriptionId GetSubscriptionId () { return mpReadClient->mSubscriptionId ; }
42
40
43
- void MoveToState (const ReadClient::ClientState aTargetState) { mpReadClient->MoveToState (aTargetState); }
41
+ void MoveToState (const app:: ReadClient::ClientState aTargetState) { mpReadClient->MoveToState (aTargetState); }
44
42
bool IsIdle () const { return mpReadClient->IsIdle (); }
45
43
46
44
CHIP_ERROR OnMessageReceived (Messaging::ExchangeContext * apExchangeContext, const PayloadHeader & aPayloadHeader,
@@ -49,29 +47,29 @@ class ReadClientTestAccess
49
47
return mpReadClient->OnMessageReceived (apExchangeContext, aPayloadHeader, std::move (aPayload));
50
48
}
51
49
52
- CHIP_ERROR ProcessReportData (System::PacketBufferHandle && aPayload, ReadClient::ReportType aReportType)
50
+ CHIP_ERROR ProcessReportData (System::PacketBufferHandle && aPayload, app:: ReadClient::ReportType aReportType)
53
51
{
54
52
return mpReadClient->ProcessReportData (std::move (aPayload), aReportType);
55
53
}
56
54
57
- CHIP_ERROR GenerateAttributePaths (AttributePathIBs::Builder & aAttributePathIBsBuilder,
58
- const Span<AttributePathParams> & aAttributePaths)
55
+ CHIP_ERROR GenerateAttributePaths (app:: AttributePathIBs::Builder & aAttributePathIBsBuilder,
56
+ const Span<app:: AttributePathParams> & aAttributePaths)
59
57
{
60
58
return mpReadClient->GenerateAttributePaths (aAttributePathIBsBuilder, aAttributePaths);
61
59
}
62
60
63
- CHIP_ERROR GenerateEventPaths (EventPathIBs::Builder & aEventPathsBuilder, const Span<EventPathParams> & aEventPaths)
61
+ CHIP_ERROR GenerateEventPaths (app:: EventPathIBs::Builder & aEventPathsBuilder, const Span<app:: EventPathParams> & aEventPaths)
64
62
{
65
63
return mpReadClient->GenerateEventPaths (aEventPathsBuilder, aEventPaths);
66
64
}
67
65
68
- CHIP_ERROR SendSubscribeRequest (const ReadPrepareParams & aSubscribePrepareParams)
66
+ CHIP_ERROR SendSubscribeRequest (const app:: ReadPrepareParams & aSubscribePrepareParams)
69
67
{
70
68
return mpReadClient->SendSubscribeRequest (aSubscribePrepareParams);
71
69
}
72
70
73
71
private:
74
- ReadClient * mpReadClient = nullptr ;
72
+ app:: ReadClient * mpReadClient = nullptr ;
75
73
};
76
74
77
75
} // namespace Test
0 commit comments