This source file includes following definitions.
- SetUpOnMainThread
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
#include "chrome/browser/extensions/extension_apitest.h"
#include "chrome/test/base/ui_test_utils.h"
class GeolocationApiTest : public ExtensionApiTest {
public:
GeolocationApiTest() {
}
virtual void SetUpOnMainThread() OVERRIDE {
ui_test_utils::OverrideGeolocation(0, 0);
}
};
IN_PROC_BROWSER_TEST_F(GeolocationApiTest,
DISABLED_ExtensionGeolocationAccessFail) {
ASSERT_TRUE(RunExtensionTest("geolocation/no_permission")) << message_;
}
IN_PROC_BROWSER_TEST_F(GeolocationApiTest,
DISABLED_ExtensionGeolocationAccessPass) {
ASSERT_TRUE(RunExtensionTest("geolocation/has_permission")) << message_;
}