- Add OpenCV and stdexec dependencies - ImageRPC type bridging OpenCV and RPC layers - Stereo rectification boilerplate - get-available-methods RPC method with get_count/get_method_name_by_id/get_method_names - Tests for remote method retrieval - CPU/GPU stereo matcher interfaces with SGBM implementation - Documentation consistency pass across impl and docs TG-5 #ready-for-test TG-2 #in-progress
31 lines
798 B
C++
31 lines
798 B
C++
//
|
|
// Created by vptyp on 11.03.2026.
|
|
//
|
|
#include <chrono>
|
|
#include <gmock/gmock.h>
|
|
#include <gtest/gtest.h>
|
|
#include <thread>
|
|
|
|
#include "cloud_point_rpc/config.hpp"
|
|
#include "cloud_point_rpc/rpc_coder.hpp"
|
|
|
|
class Base64Test : public ::testing::Test {
|
|
protected:
|
|
void SetUp() override {
|
|
FLAGS_logtostderr = true;
|
|
if (!google::IsGoogleLoggingInitialized())
|
|
google::InitGoogleLogging("TestCli");
|
|
}
|
|
void TearDown() override {}
|
|
};
|
|
|
|
TEST_F(Base64Test, EncodeDecode) {
|
|
std::vector raw{'H', 'e', 'l', 'l', 'o', 'w', '\0'};
|
|
score::Base64RPCCoder coder;
|
|
auto encoded = coder.encode(raw);
|
|
LOG(INFO) << "encoded: " << encoded;
|
|
auto decoded = coder.decode(encoded);
|
|
EXPECT_EQ(std::ranges::equal(decoded, raw), true);
|
|
LOG(INFO) << "done";
|
|
}
|