Advertisement

C++面向OOB的Mock测试

阅读量:
复制代码
    /// @file libtest.h
    #ifndef __LIBTEST_H__
    #define __LIBTEST_H__
    
    void test_func();
    #endif
    
    
      
      
      
      
      
      
    

libtest.c

复制代码
    /// @file libtest.c
    #include "libtest.h"
    #include <stdio.h>
    
    void test_func() {
    	printf("test_func\n");
    };
    
    
      
      
      
      
      
      
      
    

test.c

复制代码
    /// @file test.c
    #include "libtest.h"
    
    int main() {
    	test_func();
    	return 0;
    };
    
    
      
      
      
      
      
      
      
    

wrap.c

复制代码

全部评论 (0)

还没有任何评论哟~