File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change @@ -177,4 +177,53 @@ cc_library(
177177    }),
178178)
179179
180+ cc_test (
181+     name  =  "Profiler_Disabled_TEST" ,
182+     srcs  =  ["src/Profiler_Disabled_TEST.cc" ],
183+     # This test is only compatible with --//profiler:config="disabled" 
184+     defines  =  select ({
185+         "disabled" : [],
186+         "//conditions:default" : ["BAZEL_SKIP_PROFILER_TEST=1" ],
187+     }),
188+     deps  =  [
189+         GZ_ROOT  +  "common" ,
190+         ":profiler" ,
191+         "@gtest" ,
192+         "@gtest//:gtest_main" ,
193+     ],
194+ )
195+ 
196+ cc_test (
197+     name  =  "Profiler_Remotery_TEST" ,
198+     srcs  =  ["src/Profiler_Remotery_TEST.cc" ],
199+     # This test is only compatible with --//profiler:config="remotery" 
200+     defines  =  select ({
201+         "use_remotery" : [],
202+         "//conditions:default" : ["BAZEL_SKIP_PROFILER_TEST=1" ],
203+     }),
204+     deps  =  [
205+         GZ_ROOT  +  "common" ,
206+         ":profiler" ,
207+         "@gtest" ,
208+         "@gtest//:gtest_main" ,
209+     ],
210+ )
211+ 
212+ cc_test (
213+     name  =  "Profiler_Custom_TEST" ,
214+     srcs  =  ["src/Profiler_Custom_TEST.cc" ],
215+     # This test is only compatible with --//profiler:config="custom" 
216+     defines  =  select ({
217+         "use_custom" : [],
218+         "//conditions:default" : ["BAZEL_SKIP_PROFILER_TEST=1" ],
219+     }),
220+     deps  =  [
221+         GZ_ROOT  +  "common" ,
222+         ":ProfilerImplInterface" ,
223+         ":profiler" ,
224+         "@gtest" ,
225+         "@gtest//:gtest_main" ,
226+     ],
227+ )
228+ 
180229add_lint_tests ()
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments