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

Side by Side Diff: chromeos/dbus/ibus/ibus_component_unittest.cc

Issue 11783053: Clean Up: Remove ibus namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 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 | « chromeos/dbus/ibus/ibus_component.cc ('k') | chromeos/dbus/ibus/ibus_config_client.h » ('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 #include "chromeos/dbus/ibus/ibus_component.h" 4 #include "chromeos/dbus/ibus/ibus_component.h"
5 5
6 #include <string> 6 #include <string>
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "dbus/message.h" 9 #include "dbus/message.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 namespace chromeos { 12 namespace chromeos {
13 namespace ibus {
14 13
15 TEST(IBusComponentTest, WriteReadIBusComponentTest) { 14 TEST(IBusComponentTest, WriteReadIBusComponentTest) {
16 const std::string kName = "Component Name"; 15 const std::string kName = "Component Name";
17 const std::string kDescription = "Component Description"; 16 const std::string kDescription = "Component Description";
18 const std::string kAuthor = "Component Author"; 17 const std::string kAuthor = "Component Author";
19 18
20 const std::string kEngineId1 = "Engine Id 1"; 19 const std::string kEngineId1 = "Engine Id 1";
21 const std::string kEngineDisplayName1 = "Engine Display Name 1"; 20 const std::string kEngineDisplayName1 = "Engine Display Name 1";
22 const std::string kEngineDescription1 = "Engine Description 1"; 21 const std::string kEngineDescription1 = "Engine Description 1";
23 const std::string kEngineLanguageCode1 = "en"; 22 const std::string kEngineLanguageCode1 = "en";
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 EXPECT_EQ(kEngineLayout1, engine_descriptions[0].layout); 75 EXPECT_EQ(kEngineLayout1, engine_descriptions[0].layout);
77 76
78 EXPECT_EQ(kEngineId2, engine_descriptions[1].engine_id); 77 EXPECT_EQ(kEngineId2, engine_descriptions[1].engine_id);
79 EXPECT_EQ(kEngineDisplayName2, engine_descriptions[1].display_name); 78 EXPECT_EQ(kEngineDisplayName2, engine_descriptions[1].display_name);
80 EXPECT_EQ(kEngineDescription2, engine_descriptions[1].description); 79 EXPECT_EQ(kEngineDescription2, engine_descriptions[1].description);
81 EXPECT_EQ(kEngineLanguageCode2, engine_descriptions[1].language_code); 80 EXPECT_EQ(kEngineLanguageCode2, engine_descriptions[1].language_code);
82 EXPECT_EQ(kEngineAuthor2, engine_descriptions[1].author); 81 EXPECT_EQ(kEngineAuthor2, engine_descriptions[1].author);
83 EXPECT_EQ(kEngineLayout2, engine_descriptions[1].layout); 82 EXPECT_EQ(kEngineLayout2, engine_descriptions[1].layout);
84 } 83 }
85 84
86 } // namespace ibus
87 } // namespace chromeos 85 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/ibus/ibus_component.cc ('k') | chromeos/dbus/ibus/ibus_config_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698