summaryrefslogtreecommitdiffstats
path: root/extensions/shell/browser/geolocation/geolocation_apitest.cc
blob: f44c1ab3b6ff1433a2b962ab36365029e853f1e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "extensions/shell/test/shell_apitest.h"

namespace extensions {

IN_PROC_BROWSER_TEST_F(ShellApiTest,
                       ExtensionGeolocationShouldReturnPermissionDenied) {
  // app_shell does not implement CreateAccessTokenStore() and the other
  // bits for proper Geolocation support. We make sure that clients of this
  // API will always get "permission denied" and won't crash.
  ASSERT_TRUE(RunAppTest("geolocation/always_permission_denied")) << message_;
}

}  // namespace extensions