Fix namespace comments.
These are just mechanical comment fixes that replace
"// anonymous namespace" with "// namespace".
No behavior change is intended.
BUG=
TEST=unittest
REF_BUG=9010851
REF_CL=85724805,85858513,85861202
Yohei Yukawa
8 years ago
116 | 116 |
|
117 | 117 |
return prelauncher_item;
|
118 | 118 |
}
|
119 | |
} // anonymous namespace
|
|
119 |
} // namespace
|
120 | 120 |
|
121 | 121 |
string MacUtil::GetLabelForSuffix(const string &suffix) {
|
122 | 122 |
return string(kProjectPrefix) + suffix;
|
325 | 325 |
PasswordManagerInterface *password_manager_;
|
326 | 326 |
Mutex mutex_;
|
327 | 327 |
};
|
328 | |
} // anonymous namespace
|
|
328 |
} // namespace
|
329 | 329 |
|
330 | 330 |
bool PasswordManager::InitPassword() {
|
331 | 331 |
return Singleton<PasswordManagerImpl>::get()->InitPassword();
|
79 | 79 |
const int kMinStructureCostOffset = 1151;
|
80 | 80 |
const int32 kStopEnmerationCacheSize = 15;
|
81 | 81 |
|
82 | |
} // anonymous namespace
|
|
82 |
} // namespace
|
83 | 83 |
|
84 | 84 |
CandidateFilter::CandidateFilter(
|
85 | 85 |
const SuppressionDictionary *suppression_dictionary,
|
338 | 338 |
|
339 | 339 |
return segments.segment(segment_num).candidate(0).value;
|
340 | 340 |
}
|
341 | |
} // anonymous namespace
|
|
341 |
} // namespace
|
342 | 342 |
|
343 | 343 |
TEST_F(ConverterTest, ContextAwareConversionTest) {
|
344 | 344 |
// Desirable context aware conversions
|
91 | 91 |
// TODO(team): Support other platforms.
|
92 | 92 |
return "";
|
93 | 93 |
}
|
94 | |
} // anonymous namespace
|
|
94 |
} // namespace
|
95 | 95 |
|
96 | 96 |
WordRegisterDialog::WordRegisterDialog()
|
97 | 97 |
: is_available_(true),
|
88 | 88 |
int commit_counter_;
|
89 | 89 |
HandwritingStatus return_status_;
|
90 | 90 |
};
|
91 | |
} // anonymous namespace
|
|
91 |
} // namespace
|
92 | 92 |
|
93 | 93 |
class HandwritingManagerTest : public testing::Test {
|
94 | 94 |
public:
|
81 | 81 |
}
|
82 | 82 |
}
|
83 | 83 |
};
|
84 | |
} // anonymous namespace
|
|
84 |
} // namespace
|
85 | 85 |
|
86 | 86 |
class IPCPathManagerTest : public ::testing::Test {
|
87 | 87 |
protected:
|
148 | 148 |
return bundleIdSet == nullptr || bundleId.empty() ||
|
149 | 149 |
bundleIdSet->find(bundleId) != bundleIdSet->end();
|
150 | 150 |
}
|
151 | |
} // anonymous namespace
|
|
151 |
} // namespace
|
152 | 152 |
|
153 | 153 |
|
154 | 154 |
@implementation GoogleJapaneseInputController
|
209 | 209 |
NSArray *dummy_screens(id self, SEL selector) {
|
210 | 210 |
return [NSArray arrayWithObject:[[[MockScreen alloc] init] autorelease]];
|
211 | 211 |
}
|
212 | |
} // anonymous namespace
|
|
212 |
} // namespace
|
213 | 213 |
|
214 | 214 |
|
215 | 215 |
class MockRenderer : public mozc::renderer::RendererInterface {
|
141 | 141 |
auth, rebootPath, kAuthorizationFlagDefaults, args, nullptr);
|
142 | 142 |
return status == errAuthorizationSuccess;
|
143 | 143 |
}
|
144 | |
} // anonymous namespace
|
|
144 |
} // namespace
|
145 | 145 |
|
146 | 146 |
@implementation Uninstaller
|
147 | 147 |
|
90 | 90 |
|
91 | 91 |
def PrintFooter(self):
|
92 | 92 |
print """}
|
93 | |
} // anonymous namespace
|
|
93 |
} // namespace
|
94 | 94 |
""" % {'mapname': self._mapname}
|
95 | 95 |
|
96 | 96 |
def Print(self):
|
0 | 0 |
MAJOR=2
|
1 | 1 |
MINOR=17
|
2 | |
BUILD=2173
|
|
2 |
BUILD=2174
|
3 | 3 |
REVISION=102
|
4 | 4 |
# NACL_DICTIONARY_VERSION is the target version of the system dictionary to be
|
5 | 5 |
# downloaded by NaCl Mozc.
|
132 | 132 |
|
133 | 133 |
return final_proxy;
|
134 | 134 |
}
|
135 | |
} // anonymous namespace
|
|
135 |
} // namespace
|
136 | 136 |
|
137 | 137 |
// MacProxyManager is a proxy manager for Mac OSX. It uses
|
138 | 138 |
// CoreService API and SystemConfiguration API to obtain the current
|
|
246 | 246 |
return g_proxy_manager;
|
247 | 247 |
}
|
248 | 248 |
}
|
249 | |
} // anonymous namespace
|
|
249 |
} // namespace
|
250 | 250 |
|
251 | 251 |
void ProxyManager::SetProxyManager(
|
252 | 252 |
ProxyManagerInterface *proxy_manager) {
|
80 | 80 |
Output dummy_output;
|
81 | 81 |
return command_sender->SendCommand(command, &dummy_output);
|
82 | 82 |
}
|
83 | |
} // anonymous namespace
|
|
83 |
} // namespace
|
84 | 84 |
|
85 | 85 |
InfolistWindow::InfolistWindow()
|
86 | 86 |
: lasttimer_(nullptr),
|
38 | 38 |
namespace {
|
39 | 39 |
// The minimum height of the indicator in the VScrollBar.
|
40 | 40 |
const int kMinimumIndicatorHeight = 1;
|
41 | |
} // anonymous namespace
|
|
41 |
} // namespace
|
42 | 42 |
|
43 | 43 |
// ------------------------------------------------------------------------
|
44 | 44 |
// Initializations
|
256 | 256 |
vector<CompositionLineWindow *> line_windows_;
|
257 | 257 |
DISALLOW_COPY_AND_ASSIGN(CompositionWindowListImpl);
|
258 | 258 |
};
|
259 | |
} // anonymous namespace
|
|
259 |
} // namespace
|
260 | 260 |
|
261 | 261 |
CompositionWindowList *CompositionWindowList::CreateInstance() {
|
262 | 262 |
return new CompositionWindowListImpl();
|
115 | 115 |
|
116 | 116 |
return window_rect;
|
117 | 117 |
}
|
118 | |
} // anonymous namespace
|
|
118 |
} // namespace
|
119 | 119 |
|
120 | 120 |
Rect WindowUtil::GetWindowRectForMainWindowFromPreeditRect(
|
121 | 121 |
const Rect &preedit_rect, const Size &window_size,
|
228 | 228 |
}
|
229 | 229 |
|
230 | 230 |
CalculatorInterface *g_calculator = NULL;
|
231 | |
} // anonymous namespace
|
|
231 |
} // namespace
|
232 | 232 |
|
233 | 233 |
CalculatorInterface *CalculatorFactory::GetCalculator() {
|
234 | 234 |
if (g_calculator == NULL) {
|
81 | 81 |
<< "expression: " << wrong_key << endl;
|
82 | 82 |
}
|
83 | 83 |
|
84 | |
} // anonymous namespace
|
|
84 |
} // namespace
|
85 | 85 |
|
86 | 86 |
TEST(CalculatorTest, BasicTest) {
|
87 | 87 |
CalculatorInterface *calculator = CalculatorFactory::GetCalculator();
|
67 | 67 |
return isfinite(x);
|
68 | 68 |
#endif
|
69 | 69 |
}
|
70 | |
} // anonymous namespace
|
|
70 |
} // namespace
|
71 | 71 |
|
72 | 72 |
// Contents of parser.h is manually inserted here.
|
73 | 73 |
#define PLUS 1
|
71 | 71 |
return (((high - 0xD800) & 0x3FF) << 10) +
|
72 | 72 |
((low - 0xDC00) & 0x3FF) + 0x10000;
|
73 | 73 |
}
|
74 | |
} // anonymous namespace
|
|
74 |
} // namespace
|
75 | 75 |
|
76 | 76 |
bool ReconvertString::Compose(const wstring &preceding_text,
|
77 | 77 |
const wstring &preceding_composition,
|
64 | 64 |
dwTargetStrOffset = sizeof(wchar_t) * offset_in_chars;
|
65 | 65 |
}
|
66 | 66 |
};
|
67 | |
} // anonymous namespace
|
|
67 |
} // namespace
|
68 | 68 |
|
69 | 69 |
TEST(ReconvertStringTest, BasicTest) {
|
70 | 70 |
FixedReconvertString reconvert_string;
|
35 | 35 |
namespace {
|
36 | 36 |
const BYTE kPressed = 0x80;
|
37 | 37 |
const BYTE kToggled = 0x01;
|
38 | |
} // anonymous namespace
|
|
38 |
} // namespace
|
39 | 39 |
|
40 | 40 |
class ImeKeyboardTest : public testing::Test {
|
41 | 41 |
protected:
|
61 | 61 |
REG_NONE, REG_OPTION_NON_VOLATILE,
|
62 | 62 |
sam_desired);
|
63 | 63 |
}
|
64 | |
} // anonymous namespace
|
|
64 |
} // namespace
|
65 | 65 |
|
66 | 66 |
// Writes a REG_SZ channel name into "ap" in Mozc's client state key.
|
67 | 67 |
bool OmahaUtil::WriteChannel(const wstring &value) {
|
511 | 511 |
Util::WideToUTF8(wstr, &result);
|
512 | 512 |
return result;
|
513 | 513 |
}
|
514 | |
} // anonymous namespace
|
|
514 |
} // namespace
|
515 | 515 |
|
516 | 516 |
// Some games such as EMIL CHRONICLE ONLINE assumes that
|
517 | 517 |
// CANDIDATELIST::dwPageSize never be zero nor grater than 10 despite that
|
51 | 51 |
GCS_RESULTCLAUSE);
|
52 | 52 |
const DWORD kPreeditAndResultUpdateFlags =
|
53 | 53 |
(kPreeditUpdateFlags | kResultUpdateFlags);
|
54 | |
} // anonymous namespace
|
|
54 |
} // namespace
|
55 | 55 |
|
56 | 56 |
bool CompositionString::Initialize() {
|
57 | 57 |
::ZeroMemory(this, sizeof(*this));
|
525 | 525 |
candidate_list->set_category(commands::CONVERSION);
|
526 | 526 |
}
|
527 | 527 |
}
|
528 | |
} // anonymous namespace
|
|
528 |
} // namespace
|
529 | 529 |
|
530 | 530 |
TEST(ImeCompositionStringTest, StartCompositionTest) {
|
531 | 531 |
CompositionString compstr;
|
162 | 162 |
|
163 | 163 |
DISALLOW_COPY_AND_ASSIGN(MockClient);
|
164 | 164 |
};
|
165 | |
} // anonymous namespace
|
|
165 |
} // namespace
|
166 | 166 |
|
167 | 167 |
TEST(ImeCoreTest, OpenIME) {
|
168 | 168 |
commands::Output mock_output;
|
|
372 | 372 |
#define EXPECT_CLOSECANDIDATE_MSG(actual_msg) \
|
373 | 373 |
EXPECT_UI_MSG(WM_IME_NOTIFY, IMN_CLOSECANDIDATE, kCandidateFormIndex, \
|
374 | 374 |
(actual_msg))
|
375 | |
} // anonymous namespace
|
|
375 |
} // namespace
|
376 | 376 |
|
377 | 377 |
|
378 | 378 |
// Check UI message order for
|
38 | 38 |
InputContext *AsContext(INPUTCONTEXT *context_pointer) {
|
39 | 39 |
return reinterpret_cast<InputContext *>(context_pointer);
|
40 | 40 |
}
|
41 | |
} // anonymous namespace
|
|
41 |
} // namespace
|
42 | 42 |
|
43 | 43 |
TEST(InputContextTest, InitializeTest) {
|
44 | 44 |
// If the conversion mode is not initialized, initialize it with
|
43 | 43 |
bool BitwiseTest(LPARAM lParam) {
|
44 | 44 |
return (lParam & bit) == bit;
|
45 | 45 |
}
|
46 | |
} // anonymous namespace
|
|
46 |
} // namespace
|
47 | 47 |
|
48 | 48 |
const LPARAM kNotifyUpdateUI = 0x10000;
|
49 | 49 |
const LPARAM kNotifyReconvertFromIME = 0x10001;
|
117 | 117 |
rect->set_bottom(position.rcDocument.bottom);
|
118 | 118 |
rect->set_right(position.rcDocument.right);
|
119 | 119 |
}
|
120 | |
} // Anonymous namespace
|
|
120 |
} // namespace
|
121 | 121 |
|
122 | 122 |
UIContext::UIContext(HIMC context_handle)
|
123 | 123 |
: context_handle_(context_handle),
|
40 | 40 |
// of the suggest window must be true.
|
41 | 41 |
bool kDefaultSuggestWindowActivated = true;
|
42 | 42 |
bool kDefaultCompositionWindowActivated = false;
|
43 | |
} // anonymous namespace
|
|
43 |
} // namespace
|
44 | 44 |
|
45 | 45 |
UIVisibilityTracker::UIVisibilityTracker()
|
46 | 46 |
: ui_activated_(kDefaultUIActivated),
|