mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Applied platform thread to network lib
PiperOrigin-RevId: 520998502
This commit is contained in:
committed by
Copybara-Service
parent
3e2d4b09ff
commit
be99b60feb
@@ -14,6 +14,8 @@ cc_library(
|
||||
deps = [
|
||||
"//internal/network:types",
|
||||
"@com_google_absl//absl/functional:any_invocable",
|
||||
"@com_google_absl//absl/status",
|
||||
"@com_google_absl//absl/status:statusor",
|
||||
],
|
||||
)
|
||||
|
||||
@@ -30,6 +32,7 @@ cc_test(
|
||||
deps = [
|
||||
":nearby_fastpair_test",
|
||||
"//internal/network:types",
|
||||
"//internal/platform/implementation/g3",
|
||||
"@com_github_protobuf_matchers//protobuf-matchers",
|
||||
"@com_google_absl//absl/container:flat_hash_map",
|
||||
"@com_google_absl//absl/functional:any_invocable",
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "absl/status/statusor.h"
|
||||
#include "internal/network/http_client.h"
|
||||
|
||||
namespace nearby {
|
||||
@@ -51,6 +52,11 @@ class FastPairFakeHttpClient : public HttpClient {
|
||||
request_infos_.push_back(std::move(request_info));
|
||||
}
|
||||
|
||||
absl::StatusOr<HttpResponse> GetResponse(
|
||||
const HttpRequest& request) override {
|
||||
return absl::UnimplementedError("unimplemented");
|
||||
}
|
||||
|
||||
// Mock methods
|
||||
void CompleteRequest(const absl::StatusOr<HttpResponse>& response,
|
||||
size_t pos = 0) {
|
||||
|
||||
Reference in New Issue
Block a user