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

Side by Side Diff: extensions/common/message_bundle_unittest.cc

Issue 228073005: Move core extensions l10n code to //extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unused header is unused Created 6 years, 8 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
« no previous file with comments | « extensions/common/message_bundle.cc ('k') | extensions/extensions.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "chrome/common/extensions/message_bundle.h" 5 #include "extensions/common/message_bundle.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/i18n/rtl.h" 10 #include "base/i18n/rtl.h"
11 #include "base/memory/linked_ptr.h" 11 #include "base/memory/linked_ptr.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/strings/string_util.h" 13 #include "base/strings/string_util.h"
14 #include "base/strings/utf_string_conversions.h" 14 #include "base/strings/utf_string_conversions.h"
15 #include "base/values.h" 15 #include "base/values.h"
16 #include "chrome/common/extensions/extension_l10n_util.h"
17 #include "extensions/common/error_utils.h" 16 #include "extensions/common/error_utils.h"
17 #include "extensions/common/extension_l10n_util.h"
18 #include "extensions/common/manifest_constants.h" 18 #include "extensions/common/manifest_constants.h"
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 20
21 namespace extensions { 21 namespace extensions {
22 22
23 namespace errors = manifest_errors; 23 namespace errors = manifest_errors;
24 24
25 class MessageBundleTest : public testing::Test { 25 class MessageBundleTest : public testing::Test {
26 protected: 26 protected:
27 enum BadDictionary { 27 enum BadDictionary {
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 messages.insert(std::make_pair("message_name", "message_value")); 425 messages.insert(std::make_pair("message_name", "message_value"));
426 (*GetExtensionToL10nMessagesMap())[extension_id] = messages; 426 (*GetExtensionToL10nMessagesMap())[extension_id] = messages;
427 427
428 L10nMessagesMap* map = GetL10nMessagesMap(extension_id); 428 L10nMessagesMap* map = GetL10nMessagesMap(extension_id);
429 ASSERT_TRUE(NULL != map); 429 ASSERT_TRUE(NULL != map);
430 EXPECT_EQ(1U, map->size()); 430 EXPECT_EQ(1U, map->size());
431 EXPECT_EQ("message_value", (*map)["message_name"]); 431 EXPECT_EQ("message_value", (*map)["message_name"]);
432 } 432 }
433 433
434 } // namespace extensions 434 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/common/message_bundle.cc ('k') | extensions/extensions.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698