function testPartnerLogoShown(onInfected, isPoweredByPartner) {
  cr.webUIListenerCallback(
      onInfected ? 'chrome-cleanup-on-infected' : 'chrome-cleanup-on-cleaning',
      isPoweredByPartner, defaultScannerResults);
  Polymer.dom.flush();

  const poweredByContainerControl =
      chromeCleanupPage.$$('#powered-by-container');
  assertTrue(!!poweredByContainerControl);
  assertNotEquals(poweredByContainerControl.hidden, isPoweredByPartner);
}
/**
 * @param {boolean} onInfected Whether to test the case where current state is
 *     INFECTED, as opposed to CLEANING.
 * @param {boolean} isPoweredByPartner Whether to test the case when scan
 *     results are provided by a partner.
 */
@param {boolean} onInfected Whether to test the case where current state is
INFECTED, as opposed to CLEANING.
@param {boolean} isPoweredByPartner Whether to test the case when scan
results are provided by a partner.
@param { boolean } onInfected Whether to test the case where current state is INFECTED as opposed to CLEANING . @param { boolean } isPoweredByPartner Whether to test the case when scan results are provided by a partner .
function testPartnerLogoShown(onInfected, isPoweredByPartner) {
  cr.webUIListenerCallback(
      onInfected ? 'chrome-cleanup-on-infected' : 'chrome-cleanup-on-cleaning',
      isPoweredByPartner, defaultScannerResults);
  Polymer.dom.flush();
  const poweredByContainerControl =
      chromeCleanupPage.$$('#powered-by-container');
  assertTrue(!!poweredByContainerControl);
  assertNotEquals(poweredByContainerControl.hidden, isPoweredByPartner);
}
function testPartnerLogoShown ( onInfected , isPoweredByPartner ) { cr . webUIListenerCallback ( onInfected ? 'chrome-cleanup-on-infected' : 'chrome-cleanup-on-cleaning' , isPoweredByPartner , defaultScannerResults ) ; Polymer . dom . flush ( ) ; const poweredByContainerControl = chromeCleanupPage . $$ ( '#powered-by-container' ) ; assertTrue ( ! ! poweredByContainerControl ) ; assertNotEquals ( poweredByContainerControl . hidden , isPoweredByPartner ) ; }
@param {boolean} onInfected Whether to test the case where current state is
     INFECTED, as opposed to CLEANING.
@param { boolean } onInfected Whether to test the case where current state is INFECTED as opposed to CLEANING .