TensorFlow Serving C++ API Documentation
tensorflow_serving
core
test_util
mock_storage_path_target.h
1
/* Copyright 2016 Google Inc. All Rights Reserved.
2
3
Licensed under the Apache License, Version 2.0 (the "License");
4
you may not use this file except in compliance with the License.
5
You may obtain a copy of the License at
6
7
http://www.apache.org/licenses/LICENSE-2.0
8
9
Unless required by applicable law or agreed to in writing, software
10
distributed under the License is distributed on an "AS IS" BASIS,
11
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
See the License for the specific language governing permissions and
13
limitations under the License.
14
==============================================================================*/
15
16
#ifndef TENSORFLOW_SERVING_CORE_TEST_UTIL_MOCK_STORAGE_PATH_TARGET_H_
17
#define TENSORFLOW_SERVING_CORE_TEST_UTIL_MOCK_STORAGE_PATH_TARGET_H_
18
19
#include <vector>
20
21
#include <gmock/gmock.h>
22
#include "tensorflow/core/lib/core/status.h"
23
#include "tensorflow_serving/core/storage_path.h"
24
#include "tensorflow_serving/core/target.h"
25
26
namespace
tensorflow {
27
namespace
serving {
28
namespace
test_util {
29
30
class
MockStoragePathTarget
:
public
TargetBase
<StoragePath> {
31
public
:
32
~
MockStoragePathTarget
()
override
{ Detach(); }
33
MOCK_METHOD(
void
, SetAspiredVersions,
34
(
const
StringPiece, std::vector<
ServableData<StoragePath>
>),
35
(
override
));
36
};
37
38
}
// namespace test_util
39
}
// namespace serving
40
}
// namespace tensorflow
41
42
#endif
// TENSORFLOW_SERVING_CORE_TEST_UTIL_MOCK_STORAGE_PATH_TARGET_H_
tensorflow::serving::ServableData
Definition:
servable_data.h:32
tensorflow::serving::TargetBase
Definition:
target.h:61
tensorflow::serving::test_util::MockStoragePathTarget
Definition:
mock_storage_path_target.h:30
Generated by
1.9.1