Add mocks for Chrome libs.

Mocks for Chrome library calls so Karma unit tests pass.