Skip to content

Conversation

@yukawa
Copy link
Collaborator

@yukawa yukawa commented Jan 3, 2026

Description

As a preparation before fixing #1421, this commit aims to simplify RendererClient without changing its behavior.

Major updates are:

  • Optional member fields to override default behaviors for testing purposes now have suffix "_for_testing" and are explicitly injected via CreateForTesting() factory method.
  • Removed unnecessary nullptr checks.
  • Removed unused SetSendCommandInterface().

Main motivation is to make it possible to inject a custom service name for testing purpose in the next change for #1421, as the current design uses hard-coded service name even in the test code.

Other than above, there should be no functional changes in the production code.

Issue IDs

Steps to test new behaviors (if any)

  • OS: All
  • Steps:
    1. All GitHub Actions still pass

As a preparation before fixing google#1421, this commit aims to simplify
RendererClient without changing its behavior.

Major updates are:

 * Optional member fields to override default behaviors for testing
   purposes now have suffix "_for_testing" and are explicitly injected
   via CreateForTesting() factory method.
 * Removed unnecessary nullptr checks.
 * Removed unused SetSendCommandInterface().

Main motivation is to make it possible to inject a custom service name
for testing purpose in the next change for google#1421, as the current
design uses hard-coded service name even in the test code.

Other than above, there should be no functional changes in the
production code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant