root/chrome/common/extensions/manifest_tests/extension_manifests_old_unittest.cc

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. TEST_F

// Copyright (c) 2012 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 "chrome/common/extensions/manifest_tests/extension_manifest_test.h"

#include "extensions/common/extension.h"
#include "testing/gtest/include/gtest/gtest.h"

// Tests that the old permission name "unlimited_storage" still works for
// backwards compatibility (we renamed it to "unlimitedStorage").
TEST_F(ExtensionManifestTest, OldUnlimitedStoragePermission) {
  scoped_refptr<extensions::Extension> extension = LoadAndExpectSuccess(
      "old_unlimited_storage.json", extensions::Manifest::INTERNAL,
      extensions::Extension::NO_FLAGS);
  EXPECT_TRUE(extension->HasAPIPermission(
      extensions::APIPermission::kUnlimitedStorage));
}

/* [<][>][^][v][top][bottom][index][help] */