No, those medications won't affect any testing.
You can test for gonorrhea, chlamydia and NSU at 5-7 days.
You can test for syphilis at 6 weeks.
You had no risk for HIV, mycoplasma, trich, Hep A and Hep B because you used a condom for anal sex, and those are not transmitted by oral sex. If you must test for peace of mind, you can test at 6 weeks.
You can get a blood test for herpes at 6 weeks, but please note that there are false positives on the hsv2 blood test and those can be very hard to unravel, especially if you are outside the US. If you don't get sores/blisters, it might be a good idea not to test for herpes, especially if you are outside of the US.
There is no test for HPV for men, but you used a condom, which significantly reduces your risk. Have you had the HPV vaccine? You should talk to your doctor about it. It won't prevent it if you've been infected already, but it will help you for future encounters.
Is there a reason you are so distressed by this? Did you go outside a relationship? Are you upset by the same sex part of it? The casual sex part of it?
You had a sexual encounter. On the face of it, there's nothing wrong with that. Humans are sexual beings. Exploring your sexuality is normal.