Prevent chrome://net-internals/#export from flickering
[chromium-blink-merge.git] / chrome / browser / extensions / extension_geolocation_apitest.cc
blob201e85b687b57152e3557403624321f97feb3672
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/extensions/extension_apitest.h"
6 #include "chrome/test/base/ui_test_utils.h"
8 class GeolocationApiTest : public ExtensionApiTest {
9 public:
10 GeolocationApiTest() {
13 // InProcessBrowserTest
14 void SetUpOnMainThread() override {
15 ui_test_utils::OverrideGeolocation(0, 0);
19 // http://crbug.com/68287
20 IN_PROC_BROWSER_TEST_F(GeolocationApiTest,
21 DISABLED_ExtensionGeolocationAccessFail) {
22 // Test that geolocation cannot be accessed from extension without permission.
23 ASSERT_TRUE(RunExtensionTest("geolocation/no_permission")) << message_;
26 // Timing out. http://crbug.com/128412
27 IN_PROC_BROWSER_TEST_F(GeolocationApiTest,
28 DISABLED_ExtensionGeolocationAccessPass) {
29 // Test that geolocation can be accessed from extension with permission.
30 ASSERT_TRUE(RunExtensionTest("geolocation/has_permission")) << message_;