15#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGTABLE_MOCKS_MOCK_DATA_CONNECTION_H
16#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGTABLE_MOCKS_MOCK_DATA_CONNECTION_H
18#include "google/cloud/bigtable/data_connection.h"
19#include "google/cloud/version.h"
20#include <gmock/gmock.h>
25GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
28
29
30
31
32
33
34
35
36
40 ON_CALL(*
this, ReadRows)
41 .WillByDefault([
this](std::string
const& table_name,
43 std::int64_t rows_limit,
48 row_set, rows_limit, filter};
49 return this->ReadRowsFull(params);
80 MOCK_METHOD((StatusOr<std::pair<
bool,
bigtable::
Row>>), ReadRow,
81 (std::string
const& table_name, std::string row_key,
86 (std::string
const& table_name, std::string row_key,
93 AsyncCheckAndMutateRow,
94 (std::string
const& table_name, std::string row_key,
101 (std::string
const& table_name), (
override));
104 AsyncSampleRows, (std::string
const& table_name), (
override));
106 MOCK_METHOD(StatusOr<
bigtable::
Row>, ReadModifyWriteRow,
107 (
google::bigtable::v2::ReadModifyWriteRowRequest request),
111 (
google::bigtable::v2::ReadModifyWriteRowRequest request),
114 MOCK_METHOD(
void, AsyncReadRows,
115 (std::string
const& table_name,
122 (std::string
const& table_name, std::string row_key,
127GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
ValueTypeT< T > const & get() const
Represent a set of mutations across multiple rows.
Definition: mutations.h:492
A connection to the Cloud Bigtable Data API.
Definition: data_connection.h:88
A SingleRowMutation that failed.
Definition: mutations.h:409
Define the interfaces to create filter expressions.
Definition: filters.h:52
Object returned by Table::ReadRows(), enumerates rows in the response.
Definition: row_reader.h:54
Represent a (possibly non-continuous) set of row keys.
Definition: row_set.h:33
The in-memory representation of a Bigtable row.
Definition: row.h:34
Represent a single row mutation.
Definition: mutations.h:296
A class to mock google::cloud::bigtable::DataConnection.
Definition: mock_data_connection.h:37
MockDataConnection()
Definition: mock_data_connection.h:39
friend friend class future
Definition: mock_data_connection.h:24
Contains all the Cloud Bigtable C++ client APIs.
Definition: admin_client.h:28
MutationBranch
The branch taken by a Table::CheckAndMutateRow operation.
Definition: mutation_branch.h:26
The application profile id.
Definition: options.h:75
Represent a single change to a specific row in a Table.
Definition: mutations.h:45
Wrap the arguments to ReadRows().
Definition: data_connection.h:46
A simple wrapper to represent the response from Table::SampleRowKeys().
Definition: row_key_sample.h:27