File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed
google/cloud/storage/testing Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 13
13
// limitations under the License.
14
14
15
15
#include " google/cloud/storage/testing/mock_http_request.h"
16
+ #include " google/cloud/internal/curl_handle_factory.h"
16
17
#include < memory>
17
18
18
19
namespace google {
@@ -22,6 +23,13 @@ namespace testing {
22
23
23
24
std::shared_ptr<MockHttpRequestBuilder::Impl> MockHttpRequestBuilder::mock_;
24
25
26
+ MockHttpRequestBuilder::MockHttpRequestBuilder (
27
+ std::string url,
28
+ // NOLINTNEXTLINE(performance-unnecessary-value-param)
29
+ std::shared_ptr<google::cloud::rest_internal::CurlHandleFactory> h) {
30
+ mock_->Constructor (std::move (url), h->cainfo (), h->capath ());
31
+ }
32
+
25
33
} // namespace testing
26
34
} // namespace storage
27
35
} // namespace cloud
Original file line number Diff line number Diff line change 17
17
18
18
#include " google/cloud/storage/internal/http_response.h"
19
19
#include " google/cloud/storage/well_known_parameters.h"
20
- #include " google/cloud/internal/curl_handle_factory.h"
21
20
#include " google/cloud/status_or.h"
22
21
#include < gmock/gmock.h>
23
22
#include < nlohmann/json.hpp>
27
26
28
27
namespace google {
29
28
namespace cloud {
29
+ namespace rest_internal {
30
+ GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
31
+ class CurlHandleFactory ;
32
+ GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
33
+ } // namespace rest_internal
30
34
namespace storage {
31
35
namespace testing {
32
36
/* *
@@ -68,9 +72,8 @@ class MockHttpRequestBuilder {
68
72
public:
69
73
explicit MockHttpRequestBuilder (
70
74
// NOLINTNEXTLINE(performance-unnecessary-value-param)
71
- std::string url, std::shared_ptr<rest_internal::CurlHandleFactory> h) {
72
- mock_->Constructor (std::move (url), h->cainfo (), h->capath ());
73
- }
75
+ std::string url,
76
+ std::shared_ptr<google::cloud::rest_internal::CurlHandleFactory> h);
74
77
75
78
using RequestType = MockHttpRequest;
76
79
You can’t perform that action at this time.
0 commit comments