Home | History | Annotate | Download | only in testing
      1 
      2 licenses(["notice"])
      3 
      4 cc_library(
      5     name = "greeter_lib",
      6     srcs = [
      7         "cached.h",
      8         "cached_greeter.h",
      9         "cached_greeter.cpp",
     10         "greeter.h",
     11         "greeter.cpp",
     12         "key_value_storage.h",
     13         "key_value_storage.cpp",
     14     ],
     15     deps = ["//third_party/fruit"],
     16 )
     17 
     18 cc_binary(
     19     name = "cached_greeter",
     20     srcs = ["main.cpp"],
     21     deps = [
     22         ":greeter_lib",
     23         "//third_party/fruit",
     24     ],
     25 )
     26 
     27 cc_library(
     28     name = "greeter_testing_lib",
     29     srcs = [
     30         "fake_key_value_storage.h",
     31         "fake_key_value_storage.cpp",
     32     ],
     33     deps = [
     34         ":greeter_lib",
     35         "//third_party/fruit",
     36     ],
     37 )
     38 
     39 cc_test(
     40     name = "cached_greeter_test",
     41     srcs = ["cached_greeter_test.cpp"],
     42     deps = [
     43         ":greeter_lib",
     44         ":greeter_testing_lib",
     45         "//third_party/fruit",
     46         "@com_google_googletest//:gtest",
     47     ],
     48 )
     49 
     50 cc_test(
     51     name = "cached_greeter_test_with_normalized_component",
     52     srcs = ["cached_greeter_test_with_normalized_component.cpp"],
     53     deps = [
     54         ":greeter_lib",
     55         ":greeter_testing_lib",
     56         "//third_party/fruit",
     57         "@com_google_googletest//:gtest",
     58     ],
     59 )
     60