Splitting gmock out of gtest.

pull/12373/head
Nicolas "Pixel" Noble 8 years ago
parent f5600e99be
commit fc49d6edab
  1. 5
      WORKSPACE
  2. 2
      test/cpp/end2end/BUILD
  3. 32
      third_party/gtest.BUILD

@ -38,6 +38,11 @@ bind(
actual = "@submodule_gtest//:gtest", actual = "@submodule_gtest//:gtest",
) )
bind(
name = "gmock",
actual = "@submodule_gtest//:gmock",
)
bind( bind(
name = "benchmark", name = "benchmark",
actual = "@submodule_benchmark//:benchmark", actual = "@submodule_benchmark//:benchmark",

@ -193,6 +193,7 @@ grpc_cc_test(
"//test/cpp/util:test_util", "//test/cpp/util:test_util",
], ],
external_deps = [ external_deps = [
"gmock",
"gtest", "gtest",
], ],
) )
@ -235,6 +236,7 @@ grpc_cc_test(
"//test/cpp/util:test_util", "//test/cpp/util:test_util",
], ],
external_deps = [ external_deps = [
"gmock",
"gtest", "gtest",
], ],
) )

@ -2,14 +2,38 @@ cc_library(
name = "gtest", name = "gtest",
srcs = [ srcs = [
"googletest/src/gtest-all.cc", "googletest/src/gtest-all.cc",
"googlemock/src/gmock-all.cc"
], ],
hdrs = glob(["googletest/include/**/*.h", "googletest/src/*.cc", "googletest/src/*.h", "googlemock/include/**/*.h", "googlemock/src/*.cc", "googlemock/src/*.h"]), hdrs = glob([
"googletest/include/**/*.h",
"googletest/src/*.cc",
"googletest/src/*.h",
]),
includes = [ includes = [
"googletest", "googletest",
"googletest/include", "googletest/include",
"googlemock", ],
"googlemock/include", linkstatic = 1,
visibility = [
"//visibility:public",
],
)
cc_library(
name = "gmock",
srcs = [
"googlemock/src/gmock-all.cc"
],
hdrs = glob([
"googlemock/include/**/*.h",
"googlemock/src/*.cc",
"googlemock/src/*.h"
]),
includes = [
"googlemock",
"googlemock/include",
],
deps = [
":gtest",
], ],
linkstatic = 1, linkstatic = 1,
visibility = [ visibility = [

Loading…
Cancel
Save