blob: a5dd6d57ad76a2e1372ec36e4438c7482b6493a4 [file] [log] [blame]
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel/go:go_test.bzl", "go_test")
go_library(
name = "build_chrome",
srcs = ["build_chrome.go"],
importpath = "go.skia.org/infra/bisection/go/build_chrome",
visibility = ["//visibility:public"],
deps = [
"//bisection/go/backends",
"//bisection/go/bot_configs",
"//go/auth",
"//go/httputils",
"//go/skerr",
"//go/sklog",
"@com_github_google_uuid//:uuid",
"@org_chromium_go_luci//buildbucket/proto",
"@org_chromium_go_luci//common/api/swarming/swarming/v1:swarming",
"@org_golang_x_oauth2//google",
],
)
go_test(
name = "build_chrome_test",
srcs = ["build_chrome_test.go"],
embed = [":build_chrome"],
deps = [
"//bisection/go/backends",
"//bisection/go/backends/mocks",
"//go/testutils",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//mock",
"@org_chromium_go_luci//buildbucket/proto",
"@org_chromium_go_luci//common/api/swarming/swarming/v1:swarming",
"@org_golang_google_protobuf//types/known/timestamppb",
],
)