Set up lints.

PiperOrigin-RevId: 671526248
This commit is contained in:
Anay Wadhera
2024-09-05 15:11:40 -07:00
committed by Copybara-Service
parent 6dd3fbcd3d
commit e8e2218632
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -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,
+2
View File
@@ -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);