Adding Peter Thatcher to the owners file.
[chromium-blink-merge.git] / extensions / common / manifest_handlers / default_locale_manifest_unittest.cc
blobfd70029087d66e347dda0ba29bd0d9057df0d9d6
1 // Copyright (c) 2013 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 "extensions/common/manifest_constants.h"
6 #include "extensions/common/manifest_handlers/default_locale_handler.h"
7 #include "extensions/common/manifest_test.h"
8 #include "testing/gtest/include/gtest/gtest.h"
10 namespace extensions {
12 using DefaultLocaleManifestTest = ManifestTest;
14 TEST_F(DefaultLocaleManifestTest, DefaultLocale) {
15 LoadAndExpectError("default_locale_invalid.json",
16 manifest_errors::kInvalidDefaultLocale);
18 scoped_refptr<Extension> extension(
19 LoadAndExpectSuccess("default_locale_valid.json"));
20 EXPECT_EQ("de-AT", LocaleInfo::GetDefaultLocale(extension.get()));
23 } // namespace extensions