From a21620d32a8a0a8d527c061e2a22d51009d75877 Mon Sep 17 00:00:00 2001 From: Colm Donelan Date: Fri, 11 Oct 2019 13:09:49 +0100 Subject: IVGCVSW-3721 Add support for startup sequence (Mock Gatord service). * Receive and process the stream metadata from the client. * Send the connection ack packet. * Wait in a receiving thread and print the packets. * GatordMockTest and Impl for PeriodicCounterCapture CommandHandler * CaptureData class to retain packet data * MockUtils * Update SocketProfilingConnection to fix non blocking receipt of packets. * Restructure directory layout following review comments. * Extract the mock service into a static library in the cmake files. Signed-off-by: Colm Donelan Signed-off-by: Keith Davis Signed-off-by: Mike Kelly Signed-off-by: Finn Williams Signed-off-by: Kevin May Change-Id: I33c1c9f93976708c9315f71290d42cff53b8c075 --- tests/profiling/GatordMockMain.cpp | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 tests/profiling/GatordMockMain.cpp (limited to 'tests/profiling/GatordMockMain.cpp') diff --git a/tests/profiling/GatordMockMain.cpp b/tests/profiling/GatordMockMain.cpp deleted file mode 100644 index b8edeb2b2d..0000000000 --- a/tests/profiling/GatordMockMain.cpp +++ /dev/null @@ -1,27 +0,0 @@ -// -// Copyright © 2019 Arm Ltd. All rights reserved. -// SPDX-License-Identifier: MIT -// - -#include "CommandLineProcessor.hpp" -#include "GatordMockService.hpp" - -int main(int argc, char *argv[]) -{ - armnn::gatordmock::CommandLineProcessor cmdline; - if (!cmdline.ProcessCommandLine(argc, argv)) - { - return EXIT_FAILURE; - } - armnn::gatordmock::GatordMockService mockService; - if (!mockService.OpenListeningSocket(cmdline.GetUdsNamespace())) - { - return EXIT_FAILURE; - } - int clientFd = mockService.BlockForOneClient(); - if (-1 == clientFd) - { - return EXIT_FAILURE; - } - return EXIT_SUCCESS; -} -- cgit v1.2.1