Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions qa_interfaces/ITestPlugin.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/*
* If not stated otherwise in this file or this component's LICENSE file the
* following copyright and licenses apply:
*
* Copyright 2024 Metrological
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#pragma once

#include "Module.h"

namespace Thunder {
namespace QualityAssurance {

// @json 1.0.0
struct EXTERNAL ITestPlugin : virtual public Core::IUnknown {
enum { ID = ID_TESTPLUGIN };

~ITestPlugin() override = default;

// @brief Returns the input string unchanged
// @param input The input string to echo back
// @param output The echoed output string
virtual uint32_t Echo(const string& input, string& output /* @out */) = 0;

// @brief Returns a greeting message
// @param name The name to greet (empty defaults to "World")
Comment thread
smanes0213 marked this conversation as resolved.
// @param message The greeting message
virtual uint32_t Greet(const string& name, string& message /* @out */) = 0;
Comment thread
smanes0213 marked this conversation as resolved.
Outdated
};

} // namespace QualityAssurance
} // namespace Thunder
3 changes: 2 additions & 1 deletion qa_interfaces/QAIds.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ namespace QualityAssurance {
ID_TESTKEEP = ID_TESTTEXTOPTIONS + 4,
ID_TESTKEEP_NOTIFICATION = ID_TESTTEXTOPTIONS + 5,
ID_TESTCUSTOM = ID_TESTTEXTOPTIONS + 6,
ID_TESTCUSTOM_NOTIFICATION = ID_TESTTEXTOPTIONS + 7
ID_TESTCUSTOM_NOTIFICATION = ID_TESTTEXTOPTIONS + 7,

ID_TESTPLUGIN = RPC::IDS::ID_EXTERNAL_QA_INTERFACE_OFFSET + 0x060
Comment thread
smanes0213 marked this conversation as resolved.
Outdated
};
}
}
Loading