blob: 351b094c017214a52ea6e1729b057025ff13392d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Copyright (c) 2013 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/api/i18n/default_locale_handler.h"
#include "chrome/common/extensions/manifest_tests/chrome_manifest_test.h"
#include "extensions/common/manifest_constants.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace extensions {
class DefaultLocaleManifestTest : public ChromeManifestTest {
};
TEST_F(DefaultLocaleManifestTest, DefaultLocale) {
LoadAndExpectError("default_locale_invalid.json",
manifest_errors::kInvalidDefaultLocale);
scoped_refptr<Extension> extension(
LoadAndExpectSuccess("default_locale_valid.json"));
EXPECT_EQ("de-AT", LocaleInfo::GetDefaultLocale(extension.get()));
}
} // namespace extensions
|