blob: 70e0ac45f5d77e71b032be916bb96ffcdf650fd8 [file] [log] [blame]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/ledger/cloud_provider_firestore/bin/app/testing/test_credentials_provider.h"
#include <lib/fit/function.h>
namespace cloud_provider_firestore {
TestCredentialsProvider::TestCredentialsProvider(async_dispatcher_t* dispatcher)
: task_runner_(dispatcher) {}
TestCredentialsProvider::~TestCredentialsProvider() {}
void TestCredentialsProvider::GetCredentials(
fit::function<void(std::shared_ptr<grpc::CallCredentials>)> callback) {
task_runner_.PostTask(
[callback = std::move(callback)] { callback(nullptr); });
}
} // namespace cloud_provider_firestore