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] - Blame information for rev 4

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 kuzmi4
#include <gtest/gtest.h>
2
#include <string>
3
 
4
#include "ethlc.hpp"
5
 
6
//TEST_F(TestDev, test_0)
7
TEST(TestDev, test_0)
8
{
9
    // dec vars
10
    std::string dev_addr;
11
    std::string details;
12
    bool result;
13
 
14
    // prep CORRECT ipv4-addr
15
    dev_addr = "192.168.43.5"; // ..\vtest\sw\dev\test_main\src\main\test_main.c
16
 
17
    // proc
18
    try {
19
        // ??
20
        ethlc dev(dev_addr); // auto-destr later / -> leave visibility-region
21
 
22
        // proc
23
        result = dev.ethlc_proc();
24
        dev.ethlc_gdet(details);
25
        ASSERT_EQ(result, true) << std::endl << details;
26
    }
27
    catch (int val) {
28
        FAIL() << "-> ethlc-init problem#0" << std::endl;
29
    }
30
 
31
    // Final
32
}

powered by: WebSVN 2.1.0

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