Home | History | Annotate | Download | only in tests

Lines Matching defs:out

32      char out[4] = {1, 1, 1, 1};
33 config.unpackLanguage(out);
34 EXPECT_EQ('e', out[0]);
35 EXPECT_EQ('n', out[1]);
36 EXPECT_EQ(0, out[2]);
37 EXPECT_EQ(0, out[3]);
39 memset(out, 1, sizeof(out));
41 config.unpackLanguage(out);
42 EXPECT_EQ(0, out[0]);
43 EXPECT_EQ(0, out[1]);
44 EXPECT_EQ(0, out[2]);
45 EXPECT_EQ(0, out[3]);
55 char out[4] = {1, 1, 1, 1};
56 config.unpackRegion(out);
57 EXPECT_EQ('U', out[0]);
58 EXPECT_EQ('S', out[1]);
59 EXPECT_EQ(0, out[2]);
60 EXPECT_EQ(0, out[3]);
71 char out[4] = {1, 1, 1, 1};
72 config.unpackLanguage(out);
73 EXPECT_EQ('e', out[0]);
74 EXPECT_EQ('n', out[1]);
75 EXPECT_EQ('g', out[2]);
76 EXPECT_EQ(0, out[3]);
95 char out[4] = {1, 1, 1, 1};
96 config.unpackLanguage(out);
97 EXPECT_EQ('t', out[0]);
98 EXPECT_EQ('g', out[1]);
99 EXPECT_EQ('p', out[2]);
100 EXPECT_EQ(0, out[3]);
107 char out[4] = {1, 1, 1, 1};
108 config.unpackRegion(out);
110 EXPECT_EQ('4', out[0]);
111 EXPECT_EQ('1', out[1]);
112 EXPECT_EQ('9', out[2]);
116 const char* script, const char* variant, ResTable_config* out) {
117 memset(out, 0, sizeof(ResTable_config));
119 out->packLanguage(lang);
123 out->packRegion(country);
127 memcpy(out->localeScript, script, 4);
128 out->localeScriptWasComputed = false;
130 out->computeScript();
131 out->localeScriptWasComputed = true;
135 memcpy(out->localeVariant, variant, strlen(variant));
190 char out[4] = {1, 1, 1, 1};
191 test.unpackLanguage(out);
192 EXPECT_EQ('e', out[0]);
193 EXPECT_EQ('n', out[1]);
194 EXPECT_EQ('g', out[2]);
195 EXPECT_EQ(0, out[3]);
196 memset(out, 1, 4);
197 test.unpackRegion(out);
198 EXPECT_EQ('4', out[0]);
199 EXPECT_EQ('1', out[1]);
200 EXPECT_EQ('9', out[2]);
207 memset(out, 1, 4);
208 test.unpackRegion(out);
209 EXPECT_EQ('4', out[0]);
210 EXPECT_EQ('1', out[1]);
211 EXPECT_EQ('9', out[2]);
214 memset(out, 1, 4);
215 test.unpackLanguage(out);
216 EXPECT_EQ('d', out[0]);
217 EXPECT_EQ('e', out[1]);
218 EXPECT_EQ('\0', out[2]);
221 memset(out, 1, 4);
222 test.unpackRegion(out);
223 EXPECT_EQ('\0', out[0]);
227 memset(out, 1, 4);
228 test.unpackLanguage(out);
229 EXPECT_EQ('d', out[0]);
230 EXPECT_EQ('e', out[1]);
231 EXPECT_EQ('\0', out[2]);
234 memset(out, 1, 4);
235 test.unpackRegion(out);
236 EXPECT_EQ('\0', out[0]);
272 char out[RESTABLE_MAX_LOCALE_LEN];
274 config.getBcp47Locale(out);
275 EXPECT_EQ(0, strcmp("en-Latn", out));
278 config.getBcp47Locale(out);
279 EXPECT_EQ(0, strcmp("en", out));