Android-cuttlefish cvd tool
Classes | Namespaces | Functions | Variables
build_api_credentials_test.cpp File Reference
#include "cuttlefish/host/commands/cvd/fetch/build_api_credentials.h"
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <memory>
#include <string>
#include <vector>
#include "absl/strings/str_replace.h"
#include "absl/strings/str_split.h"
#include "absl/strings/string_view.h"
#include "android-base/file.h"
#include "fmt/format.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "cuttlefish/common/libs/utils/base64.h"
#include "cuttlefish/common/libs/utils/environment.h"
#include "cuttlefish/files/write_new_file.h"
#include "cuttlefish/host/commands/cvd/fetch/build_api_flags.h"
#include "cuttlefish/host/libs/web/credential_source/credential_source.h"
#include "cuttlefish/host/libs/web/http_client/fake_http_client.h"
#include "cuttlefish/host/libs/web/http_client/http_client.h"
#include "cuttlefish/result/result.h"
#include "cuttlefish/result/result_matchers.h"
Include dependency graph for build_api_credentials_test.cpp:

Classes

class  cuttlefish::anonymous_namespace{build_api_credentials_test.cpp}::StorageCredentialTests
 

Namespaces

namespace  cuttlefish
 
namespace  cuttlefish::anonymous_namespace{build_api_credentials_test.cpp}
 

Functions

std::string cuttlefish::anonymous_namespace{build_api_credentials_test.cpp}::ServiceAccountJson ()
 
std::string cuttlefish::anonymous_namespace{build_api_credentials_test.cpp}::AssertionClaims (absl::string_view body)
 
 cuttlefish::anonymous_namespace{build_api_credentials_test.cpp}::TEST_F (StorageCredentialTests, CredentialSourceTokenIsNotPresentedToStorageSuccess)
 
 cuttlefish::anonymous_namespace{build_api_credentials_test.cpp}::TEST_F (StorageCredentialTests, CredentialSourceFileIsNeverReadSuccess)
 
 cuttlefish::anonymous_namespace{build_api_credentials_test.cpp}::TEST_F (StorageCredentialTests, CredentialFilepathIsNotPresentedToStorageSuccess)
 
 cuttlefish::anonymous_namespace{build_api_credentials_test.cpp}::TEST_F (StorageCredentialTests, ServiceAccountMintsAStorageScopedTokenSuccess)
 
 cuttlefish::anonymous_namespace{build_api_credentials_test.cpp}::TEST_F (StorageCredentialTests, BotoFileOutranksTheMetadataServerSuccess)
 
 cuttlefish::anonymous_namespace{build_api_credentials_test.cpp}::TEST_F (StorageCredentialTests, GceHostsGetAnAmbientCredentialSuccess)
 
 cuttlefish::anonymous_namespace{build_api_credentials_test.cpp}::TEST_F (StorageCredentialTests, UseGceMetadataFlagQueriesTheMetadataServerSuccess)
 
 cuttlefish::anonymous_namespace{build_api_credentials_test.cpp}::TEST_F (StorageCredentialTests, LegacyGceValueQueriesTheMetadataServerSuccess)
 

Variables

constexpr char cuttlefish::anonymous_namespace{build_api_credentials_test.cpp}::kTestPrivateKey []
 
constexpr char cuttlefish::anonymous_namespace{build_api_credentials_test.cpp}::kTokenResponse []