OpenCores
URL https://opencores.org/ocsvn/1g_ethernet_dpi/1g_ethernet_dpi/trunk

Subversion Repositories 1g_ethernet_dpi

[/] [1g_ethernet_dpi/] [trunk/] [sw/] [app/] [gtest/] [gtest_0.cpp] - Rev 4

Compare with Previous | Blame | View Log

#include <gtest/gtest.h>
#include <string>
 
#include "ethlc.hpp"
 
//TEST_F(TestDev, test_0)
TEST(TestDev, test_0)
{
    // dec vars
    std::string dev_addr;
    std::string details;
    bool result;
 
    // prep CORRECT ipv4-addr
    dev_addr = "192.168.43.5"; // ..\vtest\sw\dev\test_main\src\main\test_main.c
 
    // proc
    try {
        // ??
        ethlc dev(dev_addr); // auto-destr later / -> leave visibility-region
 
        // proc
        result = dev.ethlc_proc();
        dev.ethlc_gdet(details);
        ASSERT_EQ(result, true) << std::endl << details;
    }
    catch (int val) {
        FAIL() << "-> ethlc-init problem#0" << std::endl;
    }
 
    // Final
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.