base: add gmock.h

to include gmock/gmock.h + status_matchers.h
This commit is contained in:
Corentin Le Molgat
2024-02-21 18:27:56 +01:00
parent 64c4453af4
commit 068dc36033
2 changed files with 41 additions and 12 deletions

View File

@@ -222,6 +222,27 @@ cc_library(
],
)
cc_library(
name = "status_matchers",
hdrs = ["status_matchers.h"],
deps = [
":base",
"@com_google_absl//absl/status",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings",
"@com_google_googletest//:gtest",
],
)
cc_library(
name = "gmock",
hdrs = ["gmock.h"],
deps = [
":status_matchers",
"@com_google_googletest//:gtest",
],
)
cc_library(
name = "gzipfile",
srcs = ["gzipfile.cc"],
@@ -446,18 +467,6 @@ cc_library(
],
)
cc_library(
name = "status_matchers",
hdrs = ["status_matchers.h"],
deps = [
":base",
"@com_google_absl//absl/status",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings",
"@com_google_googletest//:gtest",
],
)
cc_library(
name = "status_macros",
hdrs = ["status_macros.h"],

20
ortools/base/gmock.h Normal file
View File

@@ -0,0 +1,20 @@
// Copyright 2010-2024 Google LLC
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef OR_TOOLS_BASE_GMOCK_H_
#define OR_TOOLS_BASE_GMOCK_H_
#include "gmock/gmock.h"
#include "ortools/base/status_matchers.h"
#endif // OR_TOOLS_BASE_GMOCK_H_