Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: chrome/common/extensions/manifest_tests/extension_manifests_initvalue_unittest.cc

Issue 22794012: Rename extension_manifest_keys namespace to extensions::manifest_keys. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/i18n/rtl.h" 5 #include "base/i18n/rtl.h"
6 #include "base/path_service.h" 6 #include "base/path_service.h"
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "chrome/common/chrome_paths.h" 8 #include "chrome/common/chrome_paths.h"
9 #include "chrome/common/extensions/extension.h" 9 #include "chrome/common/extensions/extension.h"
10 #include "chrome/common/extensions/extension_manifest_constants.h" 10 #include "chrome/common/extensions/extension_manifest_constants.h"
11 #include "chrome/common/extensions/manifest_tests/extension_manifest_test.h" 11 #include "chrome/common/extensions/manifest_tests/extension_manifest_test.h"
12 #include "chrome/common/extensions/manifest_url_handler.h" 12 #include "chrome/common/extensions/manifest_url_handler.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 #include "ui/base/l10n/l10n_util.h" 14 #include "ui/base/l10n/l10n_util.h"
15 15
16 #if defined(TOOLKIT_GTK) 16 #if defined(TOOLKIT_GTK)
17 #include <gtk/gtk.h> 17 #include <gtk/gtk.h>
18 #endif 18 #endif
19 19
20 namespace errors = extension_manifest_errors; 20 namespace errors = extension_manifest_errors;
21 namespace keys = extension_manifest_keys; 21 namespace keys = extensions::manifest_keys;
22 22
23 namespace extensions { 23 namespace extensions {
24 24
25 class InitValueManifestTest : public ExtensionManifestTest { 25 class InitValueManifestTest : public ExtensionManifestTest {
26 }; 26 };
27 27
28 TEST_F(InitValueManifestTest, InitFromValueInvalid) { 28 TEST_F(InitValueManifestTest, InitFromValueInvalid) {
29 Testcase testcases[] = { 29 Testcase testcases[] = {
30 Testcase("init_invalid_version_missing.json", errors::kInvalidVersion), 30 Testcase("init_invalid_version_missing.json", errors::kInvalidVersion),
31 Testcase("init_invalid_version_invalid.json", errors::kInvalidVersion), 31 Testcase("init_invalid_version_invalid.json", errors::kInvalidVersion),
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 156
157 // Reset locale. 157 // Reset locale.
158 #if defined(TOOLKIT_GTK) 158 #if defined(TOOLKIT_GTK)
159 gtk_widget_set_default_direction(gtk_dir); 159 gtk_widget_set_default_direction(gtk_dir);
160 #else 160 #else
161 base::i18n::SetICUDefaultLocale(locale); 161 base::i18n::SetICUDefaultLocale(locale);
162 #endif 162 #endif
163 } 163 }
164 164
165 } // namespace extensions 165 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698