Searched refs:cases (Results 1 - 25 of 173) sorted by relevance

1234567

/external/chromium_org/ui/base/accelerators/
H A Dmenu_label_accelerator_util_linux_unittest.cc16 } cases[] = { local
25 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
26 std::string result = ConvertAcceleratorsFromWindowsStyle(cases[i].input);
27 EXPECT_EQ(cases[i].output, result);
35 } cases[] = { local
44 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
45 std::string result = RemoveWindowsStyleAccelerators(cases[i].input);
46 EXPECT_EQ(cases[i].output, result);
54 } cases[] = { local
69 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases);
[all...]
/external/chromium_org/chrome/browser/metrics/variations/
H A Dvariations_http_header_provider_unittest.cc16 } cases[] = { local
35 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
36 const GURL url(cases[i].url);
37 EXPECT_EQ(cases[i].should_append_headers,
/external/chromium_org/base/
H A Dversion_unittest.cc35 } cases[] = { local
56 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
57 Version version(cases[i].input);
58 EXPECT_EQ(cases[i].success, version.IsValid());
59 if (cases[i].success)
60 EXPECT_EQ(cases[i].parts, version.components().size());
69 } cases[] = { local
81 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
82 Version lhs(cases[i].lhs);
83 Version rhs(cases[
96 } cases[] = { local
122 } cases[] = { local
[all...]
/external/chromium_org/content/renderer/
H A Drender_view_impl_unittest.cc20 } cases[] = { local
30 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
31 params.selection_text = UTF8ToUTF16(cases[i].params_selection_text);
32 EXPECT_EQ(cases[i].expected_result,
34 UTF8ToUTF16(cases[i].selection_text),
35 cases[i].selection_text_offset,
36 cases[i].selection_range,
/external/chromium_org/base/i18n/
H A Dnumber_formatting_unittest.cc20 } cases[] = { local
30 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
33 EXPECT_EQ(cases[i].expected_english,
34 UTF16ToUTF8(FormatNumber(cases[i].number)));
37 EXPECT_EQ(cases[i].expected_german,
38 UTF16ToUTF8(FormatNumber(cases[i].number)));
48 } cases[] = { local
75 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
78 EXPECT_EQ(cases[i].expected_english,
79 UTF16ToUTF8(FormatDouble(cases[
[all...]
H A Drtl_unittest.cc46 } cases[] = { local
105 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i)
106 EXPECT_EQ(cases[i].direction,
107 GetFirstStrongCharacterDirection(WideToUTF16(cases[i].text)));
114 } cases[] = { local
183 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i)
184 EXPECT_EQ(cases[i].direction,
185 GetStringDirection(WideToUTF16(cases[i].text)));
189 const wchar_t* cases[] = { local
218 for (size_t i = 0; i < arraysize(cases);
240 const wchar_t* cases[] = { local
286 } cases[] = { local
348 const wchar_t* cases[] = { local
[all...]
/external/chromium_org/ui/gfx/
H A Dtext_utils_unittest.cc21 } cases[] = { local
48 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
51 base::string16 result = RemoveAcceleratorChar(UTF8ToUTF16(cases[i].input),
55 EXPECT_EQ(result, UTF8ToUTF16(cases[i].output));
56 EXPECT_EQ(accelerated_char_pos, cases[i].accelerated_char_pos);
57 EXPECT_EQ(accelerated_char_span, cases[i].accelerated_char_span);
/external/chromium/base/
H A Dversion_unittest.cc22 } cases[] = { local
42 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
43 scoped_ptr<Version> vers(Version::GetVersionFromString(cases[i].input));
44 EXPECT_EQ(cases[i].success, vers.get() != NULL);
45 if (cases[i].success) {
47 EXPECT_EQ(cases[i].parts, vers->components().size());
57 } cases[] = { local
69 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
70 scoped_ptr<Version> lhs(Version::GetVersionFromString(cases[i].lhs));
71 scoped_ptr<Version> rhs(Version::GetVersionFromString(cases[
[all...]
H A Dstring_number_conversions_unittest.cc64 } cases[] = { local
71 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i)
72 EXPECT_EQ(cases[i].output, Uint64ToString(cases[i].input));
80 } cases[] = { local
107 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
108 const char* ascii_chars = cases[i].input.c_str();
110 EXPECT_EQ(cases[i].success, StringToInt(cases[i].input, &output));
111 EXPECT_EQ(cases[
178 } cases[] = { local
280 } cases[] = { local
350 } cases[] = { local
389 } cases[] = { local
[all...]
/external/chromium_org/ui/base/text/
H A Dbytes_formatting_unittest.cc15 } cases[] = { local
28 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i)
29 EXPECT_EQ(cases[i].expected, GetByteDisplayUnits(cases[i].bytes));
38 } cases[] = { local
40 // under two pre-decimal digits, except in cases where it makes no
71 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
72 EXPECT_EQ(ASCIIToUTF16(cases[i].expected),
73 FormatBytesWithUnits(cases[i].bytes, cases[
[all...]
/external/dexmaker/src/dx/java/com/android/dx/dex/code/
H A DSwitchData.java38 /** {@code non-null;} sorted list of switch cases (keys) */
39 private final IntList cases; field in class:SwitchData
57 * @param cases {@code non-null;} sorted list of switch cases (keys)
62 IntList cases, CodeAddress[] targets) {
69 if (cases == null) {
70 throw new NullPointerException("cases == null");
77 int sz = cases.size();
80 throw new IllegalArgumentException("cases / targets mismatch");
84 throw new IllegalArgumentException("too many cases");
61 SwitchData(SourcePosition position, CodeAddress user, IntList cases, CodeAddress[] targets) argument
210 packedCodeSize(IntList cases) argument
226 sparseCodeSize(IntList cases) argument
239 shouldPack(IntList cases) argument
[all...]
/external/chromium_org/v8/test/webkit/
H A Dchar-at.js30 var cases = [ variable
114 for (var i = 0; i < cases.length; ++i)
116 var item = cases[i];
/external/proguard/src/proguard/classfile/instruction/
H A DLookUpSwitchInstruction.java35 public int[] cases; field in class:LookUpSwitchInstruction
49 int[] cases,
54 this.cases = cases;
68 this.cases = lookUpSwitchInstruction.cases;
93 cases = new int[jumpOffsetCount];
98 cases[index] = readInt(code, offset); offset += 4;
114 writeInt(code, offset, cases.length); offset += 4;
117 for (int index = 0; index < cases
47 LookUpSwitchInstruction(byte opcode, int defaultOffset, int[] cases, int[] jumpOffsets) argument
[all...]
/external/dexmaker/src/dx/java/com/android/dx/rop/code/
H A DSwitchInsn.java25 * Instruction which contains switch cases.
29 /** {@code non-null;} list of switch cases */
30 private final IntList cases; field in class:SwitchInsn
39 * @param cases {@code non-null;} list of switch cases
42 RegisterSpecList sources, IntList cases) {
49 if (cases == null) {
50 throw new NullPointerException("cases == null");
53 this.cases = cases;
41 SwitchInsn(Rop opcode, SourcePosition position, RegisterSpec result, RegisterSpecList sources, IntList cases) argument
[all...]
/external/chromium_org/third_party/WebKit/Source/weborigin/
H A DDatabaseIdentifierTest.cpp53 } cases[] = { local
69 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
70 RefPtr<SecurityOrigin> origin = SecurityOrigin::create(cases[i].protocol, cases[i].host, cases[i].port);
72 EXPECT_EQ(cases[i].expectedIdentifier, identifier) << "test case " << origin->toString();
83 } cases[] = { local
191 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
192 RefPtr<SecurityOrigin> origin = SecurityOrigin::create("http", cases[i].hostname, 80);
194 EXPECT_EQ(cases[
[all...]
H A DKURLTest.cpp55 // Test the cases where we should be the same as WebKit's old KURL.
69 } cases[] = { local
77 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); i++) {
79 WebCore::KURL kurl(WebCore::ParsedURLString, cases[i].url);
81 EXPECT_EQ(cases[i].protocol, kurl.protocol());
82 EXPECT_EQ(cases[i].host, kurl.host());
83 EXPECT_EQ(cases[i].port, kurl.port());
84 EXPECT_EQ(cases[i].user, kurl.user());
85 EXPECT_EQ(cases[i].pass, kurl.pass());
86 EXPECT_EQ(cases[
111 ComponentCase cases[] = { local
204 } cases[] = { local
[all...]
/external/chromium_org/chrome/browser/profiles/
H A Dfile_path_verifier_win_unittest.cc14 } cases[] = { local
32 for (size_t i = 0; i < arraysize(cases); ++i) {
33 base::FilePath p1(cases[i].inputs[0]);
34 base::FilePath p2(cases[i].inputs[1]);
37 EXPECT_EQ(cases[i].expected, reason) <<
/external/chromium_org/v8/test/mjsunit/regress/
H A Dregress-2056.js30 var cases = [ variable
53 for (i = 0; i < cases.length; ++i) {
54 var c = cases[i];
60 for (i = 0; i < cases.length; ++i) {
61 var c = cases[i];
/external/v8/test/mjsunit/regress/
H A Dregress-2056.js30 var cases = [ variable
53 for (i = 0; i < cases.length; ++i) {
54 var c = cases[i];
60 for (i = 0; i < cases.length; ++i) {
61 var c = cases[i];
/external/chromium_org/base/strings/
H A Dstring_number_conversions_unittest.cc69 } cases[] = { local
76 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i)
77 EXPECT_EQ(cases[i].output, Uint64ToString(cases[i].input));
85 } cases[] = { local
112 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
114 EXPECT_EQ(cases[i].success, StringToInt(cases[i].input, &output));
115 EXPECT_EQ(cases[i].output, output);
117 string16 utf16_input = UTF8ToUTF16(cases[
148 } cases[] = { local
212 } cases[] = { local
277 } cases[] = { local
348 } cases[] = { local
414 } cases[] = { local
466 } cases[] = { local
523 } cases[] = { local
586 } cases[] = { local
625 } cases[] = { local
679 } cases[] = { local
[all...]
/external/valgrind/main/memcheck/tests/
H A Dleak-cases-full.stderr.exp7 by 0x........: mk (leak-cases.c:52)
8 by 0x........: f (leak-cases.c:78)
9 by 0x........: main (leak-cases.c:107)
13 by 0x........: mk (leak-cases.c:52)
14 by 0x........: f (leak-cases.c:81)
15 by 0x........: main (leak-cases.c:107)
19 by 0x........: mk (leak-cases.c:52)
20 by 0x........: f (leak-cases.c:84)
21 by 0x........: main (leak-cases.c:107)
25 by 0x........: mk (leak-cases
[all...]
H A Dleak-cases-possible.stderr.exp7 by 0x........: mk (leak-cases.c:52)
8 by 0x........: f (leak-cases.c:74)
9 by 0x........: main (leak-cases.c:107)
13 by 0x........: mk (leak-cases.c:52)
14 by 0x........: f (leak-cases.c:76)
15 by 0x........: main (leak-cases.c:107)
19 by 0x........: mk (leak-cases.c:52)
20 by 0x........: f (leak-cases.c:91)
21 by 0x........: main (leak-cases.c:107)
/external/chromium_org/chrome/browser/extensions/
H A Dextension_creator_filter_unittest.cc46 const struct UnaryBooleanTestData cases[] = { local
58 for (size_t i = 0; i < arraysize(cases); ++i) {
59 base::FilePath input(cases[i].input);
63 EXPECT_EQ(cases[i].expected, observed) <<
76 const struct StringBooleanWithBooleanTestData cases[] = { local
86 for (size_t i = 0; i < arraysize(cases); ++i) {
87 base::FilePath input(cases[i].input_char);
88 bool should_hide = cases[i].input_bool;
95 EXPECT_EQ(cases[i].expected, observed) <<
/external/chromium_org/webkit/common/database/
H A Ddatabase_identifier_unittest.cc18 } cases[] = { local
36 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
37 GURL origin(cases[i].origin);
40 EXPECT_EQ(cases[i].expectedIdentifier, identifier.ToString())
41 << "test case " << cases[i].origin;
52 } cases[] = { local
153 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
154 GURL origin("http://" + cases[i].hostname);
157 EXPECT_EQ(cases[i].expected, identifier.ToString())
158 << "test case " << i << " :\"" << cases[
[all...]
/external/chromium_org/base/files/
H A Dfile_path_unittest.cc62 const struct UnaryTestData cases[] = { local
142 for (size_t i = 0; i < arraysize(cases); ++i) {
143 FilePath input(cases[i].input);
145 EXPECT_EQ(FilePath::StringType(cases[i].expected), observed.value()) <<
151 const struct UnaryTestData cases[] = { local
229 for (size_t i = 0; i < arraysize(cases); ++i) {
230 FilePath input(cases[i].input);
232 EXPECT_EQ(FilePath::StringType(cases[i].expected), observed.value()) <<
238 const struct BinaryTestData cases[] = { local
255 // Append introduces the default separator character, so these test cases
330 const struct UnaryTestData cases[] = { local
394 const struct UnaryBooleanTestData cases[] = { local
462 const struct UnaryTestData cases[] = { local
515 const struct BinaryBooleanTestData cases[] = { local
567 const struct BinaryTestData cases[] = { local
647 const struct BinaryBooleanTestData cases[] = { local
723 const struct UnaryTestData cases[] = { local
774 const struct BinaryTestData cases[] = { local
842 const struct UnaryTestData cases[] = { local
870 const struct BinaryTestData cases[] = { local
908 const struct BinaryTestData cases[] = { local
946 const struct BinaryBooleanTestData cases[] = { local
991 const struct BinaryIntTestData cases[] = { local
1068 const struct UnaryBooleanTestData cases[] = { local
1102 const struct UTF8TestData cases[] = { local
1161 const struct UnaryTestData cases[] = { local
1204 const UnaryBooleanTestData cases[] = { local
1218 const UnaryTestData cases[] = { local
[all...]

Completed in 1411 milliseconds

1234567