mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 22:56:12 -04:00
Set up lints.
PiperOrigin-RevId: 671526248
This commit is contained in:
committed by
Copybara-Service
parent
6dd3fbcd3d
commit
e8e2218632
@@ -52,6 +52,7 @@ bool TransferMetadata::IsFinalStatus(Status status) {
|
||||
}
|
||||
|
||||
// static
|
||||
// LINT.IfChange()
|
||||
std::string TransferMetadata::StatusToString(Status status) {
|
||||
switch (status) {
|
||||
case Status::kConnecting:
|
||||
@@ -86,6 +87,7 @@ std::string TransferMetadata::StatusToString(Status status) {
|
||||
return "kIncompletePayloads";
|
||||
}
|
||||
}
|
||||
// LINT.ThenChange(//depot/google3/location/nearby/cpp/sharing/clients/dart/platform/lib/types/transfer_status.dart)
|
||||
|
||||
TransferMetadata::TransferMetadata(
|
||||
Status status, float progress, std::optional<std::string> token,
|
||||
|
||||
@@ -28,6 +28,7 @@ namespace sharing {
|
||||
// notifications so additions should be explicitly handled on the frontend.
|
||||
class TransferMetadata {
|
||||
public:
|
||||
// LINT.IfChange()
|
||||
enum class Status {
|
||||
kUnknown,
|
||||
kConnecting,
|
||||
@@ -46,6 +47,7 @@ class TransferMetadata {
|
||||
kIncompletePayloads,
|
||||
kMaxValue = kIncompletePayloads
|
||||
};
|
||||
// LINT.ThenChange(//depot/google3/location/nearby/cpp/sharing/clients/dart/platform/lib/types/transfer_status.dart)
|
||||
|
||||
static bool IsFinalStatus(Status status);
|
||||
static std::string StatusToString(TransferMetadata::Status status);
|
||||
|
||||
Reference in New Issue
Block a user