| 410 | class TestAuthHandler : public ::testing::Test { |
| 411 | public: |
| 412 | void SetUp() { |
| 413 | ASSERT_OK(MakeServer<AuthTestServer>( |
| 414 | &server_, &client_, |
| 415 | [](FlightServerOptions* options) { |
| 416 | options->auth_handler = |
| 417 | std::make_unique<TestServerAuthHandler>("user", "p4ssw0rd"); |
| 418 | return Status::OK(); |
| 419 | }, |
| 420 | [](FlightClientOptions* options) { return Status::OK(); })); |
| 421 | } |
| 422 | |
| 423 | void TearDown() { |
| 424 | ASSERT_OK(client_->Close()); |