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

Side by Side Diff: chromeos/dbus/ibus/ibus_property_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_property.cc ('k') | chromeos/dbus/ibus/ibus_text.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_property.h" 4 #include "chromeos/dbus/ibus/ibus_property.h"
5 5
6 #include <string> 6 #include <string>
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/string_number_conversions.h" 11 #include "base/string_number_conversions.h"
12 #include "chromeos/dbus/ibus/ibus_object.h" 12 #include "chromeos/dbus/ibus/ibus_object.h"
13 #include "dbus/message.h" 13 #include "dbus/message.h"
14 #include "testing/gmock/include/gmock/gmock.h" 14 #include "testing/gmock/include/gmock/gmock.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 16
17 namespace chromeos { 17 namespace chromeos {
18 namespace ibus {
19
20 namespace { 18 namespace {
21 19
22 const char kSampleKey[] = "Key"; 20 const char kSampleKey[] = "Key";
23 const IBusProperty::IBusPropertyType kSampleType = 21 const IBusProperty::IBusPropertyType kSampleType =
24 IBusProperty::IBUS_PROPERTY_TYPE_RADIO; 22 IBusProperty::IBUS_PROPERTY_TYPE_RADIO;
25 const char kSampleLabel[] = "Label"; 23 const char kSampleLabel[] = "Label";
26 const char kSampleTooltip[] = "Tooltip"; 24 const char kSampleTooltip[] = "Tooltip";
27 const bool kSampleVisible = true; 25 const bool kSampleVisible = true;
28 const bool kSampleChecked = false; 26 const bool kSampleChecked = false;
29 27
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 // Check a result. 109 // Check a result.
112 EXPECT_TRUE(CheckProperty("Root_", target_property)); 110 EXPECT_TRUE(CheckProperty("Root_", target_property));
113 const IBusPropertyList& sub_properties = target_property.sub_properties(); 111 const IBusPropertyList& sub_properties = target_property.sub_properties();
114 ASSERT_EQ(kSubPropertyCount, sub_properties.size()); 112 ASSERT_EQ(kSubPropertyCount, sub_properties.size());
115 for (size_t i = 0; i < kSubPropertyCount; ++i) { 113 for (size_t i = 0; i < kSubPropertyCount; ++i) {
116 const std::string prefix = "Sub" + base::Uint64ToString(i); 114 const std::string prefix = "Sub" + base::Uint64ToString(i);
117 EXPECT_TRUE(CheckProperty(prefix, *(sub_properties[i]))); 115 EXPECT_TRUE(CheckProperty(prefix, *(sub_properties[i])));
118 } 116 }
119 } 117 }
120 118
121 } // namespace ibus
122 } // namespace chromeos 119 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/ibus/ibus_property.cc ('k') | chromeos/dbus/ibus/ibus_text.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698