src/ui/bin/root_presenter/tests/color_transform_handler_unittest.cc
TEST_F(ColorTransformHandlerTest, TransformMissingMatrix) {
  // Change settings.
  fuchsia::accessibility::ColorTransformConfiguration configuration;
  configuration.set_color_correction(
      fuchsia::accessibility::ColorCorrectionMode::CORRECT_DEUTERANOMALY);
  configuration.set_color_inversion_enabled(false);
  EXPECT_FALSE(configuration.has_color_adjustment_matrix());

  color_transform_handler_->SetColorTransformConfiguration(std::move(configuration), [] {});
  RunLoopUntilIdle();

  // Verify that fake scenic was not called.
  ASSERT_FALSE(fake_session_->PresentWasCalled());
}
// Verify that we don't call scenic when the matrix is missing.
Verify that we don't call scenic when the matrix is missing.
Verify that we don ' t call scenic when the matrix is missing .
TEST_F(ColorTransformHandlerTest, TransformMissingMatrix) {
  fuchsia::accessibility::ColorTransformConfiguration configuration;
  configuration.set_color_correction(
      fuchsia::accessibility::ColorCorrectionMode::CORRECT_DEUTERANOMALY);
  configuration.set_color_inversion_enabled(false);
  EXPECT_FALSE(configuration.has_color_adjustment_matrix());
  color_transform_handler_->SetColorTransformConfiguration(std::move(configuration), [] {});
  RunLoopUntilIdle();
  ASSERT_FALSE(fake_session_->PresentWasCalled());
}
TEST_F ( ColorTransformHandlerTest , TransformMissingMatrix ) { fuchsia :: accessibility :: ColorTransformConfiguration configuration ; configuration . set_color_correction ( fuchsia :: accessibility :: ColorCorrectionMode :: CORRECT_DEUTERANOMALY ) ; configuration . set_color_inversion_enabled ( false ) ; EXPECT_FALSE ( configuration . has_color_adjustment_matrix ( ) ) ; color_transform_handler_ -> SetColorTransformConfiguration ( std :: move ( configuration ) , [ ] { } ) ; RunLoopUntilIdle ( ) ; ASSERT_FALSE ( fake_session_ -> PresentWasCalled ( ) ) ; }
Verify that we don't call scenic when the matrix is missing.
Verify that we don ' t call scenic when the matrix is missing .
// Change settings. // Verify that fake scenic was not called.