I have personally experienced a drug test with a technology company for a pre-employment screening, and heard of others that do the same. The company gave ample notice, but I don't think it's fair to paint a picture where drug tests are non-existent within tech.