| 433 | class TestBasicAuthHandler : public ::testing::Test { |
| 434 | public: |
| 435 | void SetUp() { |
| 436 | ASSERT_OK(MakeServer<AuthTestServer>( |
| 437 | &server_, &client_, |
| 438 | [](FlightServerOptions* options) { |
| 439 | options->auth_handler = |
| 440 | std::make_unique<TestServerBasicAuthHandler>("user", "p4ssw0rd"); |
| 441 | return Status::OK(); |
| 442 | }, |
| 443 | [](FlightClientOptions* options) { return Status::OK(); })); |
| 444 | } |
| 445 | |
| 446 | void TearDown() { |
| 447 | ASSERT_OK(client_->Close()); |