The fact is California law requires smog stations conduct smog inspections to vehicles as they are driven into the smog test facility. It is against BAR regulation to inform a vehicle owner that the vehicle will not pass the smog test prior to conducting the inspection. The BAR has set forth this policy in order to collect accurate emissions data from vehicles currently being operated on California roadways.
Had the smog technician in this specific case told you your Toyota Camry will fail the smog check if he proceeds with the inspection, he would have been breaking California law and stand to receive a fine and penalty from the State.