chromium/third_party/grpc/src/src/core/lib/transport/timeout_encoding.cc

//
//
// Copyright 2015 gRPC authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
//

#include <grpc/support/port_platform.h>

#include "src/core/lib/transport/timeout_encoding.h"

#include <limits>

#include "absl/base/attributes.h"

#include <grpc/support/log.h>
#include <grpc/support/time.h>

namespace grpc_core {

namespace {

int64_t DivideRoundingUp(int64_t dividend, int64_t divisor) {}

constexpr int64_t kSecondsPerMinute =;
constexpr int64_t kMinutesPerHour =;
constexpr int64_t kMaxHours =;

bool IsAllSpace(const uint8_t* p, const uint8_t* end) {}

}  // namespace

Timeout Timeout::FromDuration(Duration duration) {}

double Timeout::RatioVersus(Timeout other) const {}

Duration Timeout::AsDuration() const {}

Slice Timeout::Encode() const {}

Timeout Timeout::FromMillis(int64_t millis) {}

Timeout Timeout::FromSeconds(int64_t seconds) {}

Timeout Timeout::FromMinutes(int64_t minutes) {}

Timeout Timeout::FromHours(int64_t hours) {}

absl::optional<Duration> ParseTimeout(const Slice& text) {}

}  // namespace grpc_core