mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Internal changes
PiperOrigin-RevId: 872474540
This commit is contained in:
committed by
Copybara-Service
parent
a60821574f
commit
675b28c717
@@ -42,14 +42,15 @@ cc_library(
|
||||
],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//google/nearby/identity/v1:resources_cc_proto",
|
||||
"//google/nearby/identity/v1:rpcs_cc_proto",
|
||||
"//google/protobuf:timestamp_cc_proto",
|
||||
"//internal/base",
|
||||
"//internal/base:file_path",
|
||||
"//internal/crypto_cros",
|
||||
"//internal/platform:mac_address",
|
||||
"//internal/platform:types",
|
||||
"//internal/platform/implementation:account_manager",
|
||||
"//proto/identity/v1:resources_cc_proto",
|
||||
"//proto/identity/v1:rpcs_cc_proto",
|
||||
"//sharing/common",
|
||||
"//sharing/internal/api:platform",
|
||||
"//sharing/internal/base",
|
||||
@@ -122,12 +123,12 @@ cc_test(
|
||||
deps = [
|
||||
":certificates",
|
||||
":test_support",
|
||||
"//google/nearby/identity/v1:resources_cc_proto",
|
||||
"//google/nearby/identity/v1:rpcs_cc_proto",
|
||||
"//internal/platform:mac_address",
|
||||
"//internal/platform/implementation:account_manager",
|
||||
"//internal/platform/implementation:platform_impl",
|
||||
"//internal/test",
|
||||
"//proto/identity/v1:resources_cc_proto",
|
||||
"//proto/identity/v1:rpcs_cc_proto",
|
||||
"//sharing/common",
|
||||
"//sharing/common:enum",
|
||||
"//sharing/internal/api:mock_sharing_platform",
|
||||
|
||||
@@ -28,6 +28,9 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "google/nearby/identity/v1/resources.pb.h"
|
||||
#include "google/nearby/identity/v1/rpcs.pb.h"
|
||||
#include "google/protobuf/timestamp.pb.h"
|
||||
#include "absl/algorithm/algorithm.h"
|
||||
#include "absl/container/flat_hash_map.h"
|
||||
#include "absl/memory/memory.h"
|
||||
@@ -41,8 +44,6 @@
|
||||
#include "internal/base/file_path.h"
|
||||
#include "internal/platform/implementation/account_manager.h"
|
||||
#include "internal/platform/mac_address.h"
|
||||
#include "proto/identity/v1/resources.pb.h"
|
||||
#include "proto/identity/v1/rpcs.pb.h"
|
||||
#include "sharing/certificates/common.h"
|
||||
#include "sharing/certificates/constants.h"
|
||||
#include "sharing/certificates/nearby_share_certificate_manager.h"
|
||||
@@ -494,7 +495,10 @@ void NearbyShareCertificateManagerImpl::AddCertifactesToPublishDeviceRequest(
|
||||
shared_credential->set_data(public_cert->SerializeAsString());
|
||||
shared_credential->set_data_type(
|
||||
SharedCredential::DATA_TYPE_PUBLIC_CERTIFICATE);
|
||||
*shared_credential->mutable_expiration_time() = public_cert->end_time();
|
||||
shared_credential->mutable_expiration_time()->set_seconds(
|
||||
public_cert->end_time().seconds());
|
||||
shared_credential->mutable_expiration_time()->set_nanos(
|
||||
public_cert->end_time().nanos());
|
||||
}
|
||||
LOG(INFO) << __func__ << ": PublishDevice: uploaded "
|
||||
<< self_share_credential_count << " self share credentials and "
|
||||
|
||||
@@ -25,6 +25,8 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "google/nearby/identity/v1/resources.pb.h"
|
||||
#include "google/nearby/identity/v1/rpcs.pb.h"
|
||||
#include "gmock/gmock.h"
|
||||
#include "protobuf-matchers/protocol-buffer-matchers.h"
|
||||
#include "gtest/gtest.h"
|
||||
@@ -38,8 +40,6 @@
|
||||
#include "internal/platform/implementation/account_manager.h"
|
||||
#include "internal/platform/mac_address.h"
|
||||
#include "internal/test/fake_account_manager.h"
|
||||
#include "proto/identity/v1/resources.pb.h"
|
||||
#include "proto/identity/v1/rpcs.pb.h"
|
||||
#include "sharing/certificates/constants.h"
|
||||
#include "sharing/certificates/fake_nearby_share_certificate_storage.h"
|
||||
#include "sharing/certificates/nearby_share_certificate_manager.h"
|
||||
|
||||
@@ -38,11 +38,11 @@ cc_library(
|
||||
"//sharing:__subpackages__",
|
||||
],
|
||||
deps = [
|
||||
"//google/nearby/identity/v1:rpcs_cc_proto",
|
||||
"//internal/base:file_path",
|
||||
"//internal/platform:mac_address",
|
||||
"//internal/platform:types",
|
||||
"//internal/platform/implementation:account_manager",
|
||||
"//proto/identity/v1:rpcs_cc_proto",
|
||||
"//sharing/analytics",
|
||||
"//sharing/proto:share_cc_proto",
|
||||
"@com_google_absl//absl/functional:any_invocable",
|
||||
|
||||
@@ -17,9 +17,9 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "google/nearby/identity/v1/rpcs.pb.h"
|
||||
#include "absl/functional/any_invocable.h"
|
||||
#include "absl/status/statusor.h"
|
||||
#include "proto/identity/v1/rpcs.pb.h"
|
||||
#include "sharing/proto/certificate_rpc.pb.h"
|
||||
#include "sharing/proto/contact_rpc.pb.h"
|
||||
#include "sharing/proto/device_rpc.pb.h"
|
||||
|
||||
@@ -33,8 +33,6 @@ cc_library(
|
||||
"//internal/platform:types",
|
||||
"//internal/platform/implementation:account_manager",
|
||||
"//internal/platform/implementation:types",
|
||||
"//proto/identity/v1:resources_cc_proto",
|
||||
"//proto/identity/v1:rpcs_cc_proto",
|
||||
"//sharing/common",
|
||||
"//sharing/common:enum",
|
||||
"//sharing/internal/api:platform",
|
||||
|
||||
@@ -27,8 +27,6 @@
|
||||
#include "internal/platform/device_info.h"
|
||||
#include "internal/platform/implementation/account_manager.h"
|
||||
#include "internal/platform/implementation/device_info.h"
|
||||
#include "proto/identity/v1/resources.pb.h"
|
||||
#include "proto/identity/v1/rpcs.pb.h"
|
||||
#include "sharing/common/nearby_share_enums.h"
|
||||
#include "sharing/common/nearby_share_prefs.h"
|
||||
#include "sharing/internal/api/preference_manager.h"
|
||||
|
||||
Reference in New Issue
Block a user