Classes | Enumerations | Functions | Variables
base64_test.cc File Reference
#include <stdio.h>
#include <string.h>
#include <string>
#include <vector>
#include <gtest/gtest.h>
#include <openssl/base64.h>
#include <openssl/crypto.h>
#include <openssl/err.h>
#include "../internal.h"
#include "../test/test_util.h"
Include dependency graph for base64_test.cc:

Go to the source code of this file.

Classes

class  Base64Test
 
struct  Base64TestVector
 

Enumerations

enum  encoding_relation { canonical, valid, invalid }
 

Functions

 INSTANTIATE_TEST_SUITE_P (All, Base64Test, testing::ValuesIn(kTestVectors))
 
static std::string RemoveNewlines (const char *in)
 
 TEST_P (Base64Test, DecodeBase64)
 
 TEST_P (Base64Test, DecodeBlock)
 
 TEST_P (Base64Test, DecodeUpdateStreaming)
 
 TEST_P (Base64Test, EncodeBlock)
 
 TEST_P (Base64Test, EncodeDecode)
 

Variables

static const Base64TestVector kTestVectors []
 

Enumeration Type Documentation

◆ encoding_relation

Enumerator
canonical 
valid 
invalid 

Definition at line 31 of file base64_test.cc.

Function Documentation

◆ INSTANTIATE_TEST_SUITE_P()

INSTANTIATE_TEST_SUITE_P ( All  ,
Base64Test  ,
testing::ValuesIn(kTestVectors  
)

◆ RemoveNewlines()

static std::string RemoveNewlines ( const char *  in)
static

Definition at line 111 of file base64_test.cc.

◆ TEST_P() [1/5]

TEST_P ( Base64Test  ,
DecodeBase64   
)

Definition at line 142 of file base64_test.cc.

◆ TEST_P() [2/5]

TEST_P ( Base64Test  ,
DecodeBlock   
)

Definition at line 166 of file base64_test.cc.

◆ TEST_P() [3/5]

TEST_P ( Base64Test  ,
DecodeUpdateStreaming   
)

Definition at line 248 of file base64_test.cc.

◆ TEST_P() [4/5]

TEST_P ( Base64Test  ,
EncodeBlock   
)

Definition at line 124 of file base64_test.cc.

◆ TEST_P() [5/5]

TEST_P ( Base64Test  ,
EncodeDecode   
)

Definition at line 190 of file base64_test.cc.

Variable Documentation

◆ kTestVectors

const Base64TestVector kTestVectors[]
static

Definition at line 49 of file base64_test.cc.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:04