Home
last modified time | relevance | path

Searched refs:Expected (Results 1 – 25 of 760) sorted by relevance

12345678910>>...31

/external/clang/unittests/Format/
DCleanupTest.cpp43 std::string Expected = "\n\n\n\n\nnamespace C {\n" in TEST_F() local
51 EXPECT_EQ(Expected, Result); in TEST_F()
62 std::string Expected = "namespace A {\n" in TEST_F() local
68 EXPECT_EQ(Expected, Result); in TEST_F()
76 std::string Expected = "namespace A {\n\n" in TEST_F() local
81 EXPECT_EQ(Expected, Result); in TEST_F()
92 std::string Expected = "\n\n\n\n\n\n"; in TEST_F() local
95 EXPECT_EQ(Expected, Result); in TEST_F()
109 std::string Expected = "\n\n\n\n\n\n\n\n\n\n"; in TEST_F() local
114 EXPECT_EQ(Expected, Result); in TEST_F()
[all …]
/external/llvm/unittests/MC/
DStringTableBuilderTest.cpp28 std::string Expected; in TEST() local
29 Expected += '\x00'; in TEST()
30 Expected += "foobar"; in TEST()
31 Expected += '\x00'; in TEST()
32 Expected += "foo"; in TEST()
33 Expected += '\x00'; in TEST()
35 EXPECT_EQ(Expected, B.data()); in TEST()
55 std::string Expected; in TEST() local
59 Expected.append((const char*)&ExpectedSize, 4); in TEST()
60 Expected += "pygmy hippopotamus"; in TEST()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/MC/
DStringTableBuilderTest.cpp29 std::string Expected; in TEST() local
30 Expected += '\x00'; in TEST()
31 Expected += "foobar"; in TEST()
32 Expected += '\x00'; in TEST()
33 Expected += "foo"; in TEST()
34 Expected += '\x00'; in TEST()
40 EXPECT_EQ(Expected, Data); in TEST()
60 std::string Expected; in TEST() local
64 Expected.append((const char*)&ExpectedSize, 4); in TEST()
65 Expected += "pygmy hippopotamus"; in TEST()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-rc/
DResourceScriptParser.h36 using ParseType = Expected<std::unique_ptr<RCResource>>;
37 using ParseOptionType = Expected<std::unique_ptr<OptionalStmt>>;
42 ParserError(const Twine &Expected, const LocIter CurLoc, const LocIter End);
84 Expected<RCInt> readInt(); // Parse an integer.
85 Expected<StringRef> readString(); // Parse a string.
86 Expected<StringRef> readIdentifier(); // Parse an identifier.
87 Expected<StringRef> readFilename(); // Parse a filename.
88 Expected<IntOrString> readIntOrString(); // Parse an integer or a string.
89 Expected<IntOrString> readTypeOrName(); // Parse an integer or an identifier.
92 Expected<RCInt> parseIntExpr1();
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Object/
DArchive.h46 Expected<StringRef> getRawName() const;
49 Expected<StringRef> getName(uint64_t Size) const;
52 Expected<uint32_t> getSize() const;
54 Expected<sys::fs::perms> getAccessMode() const;
55 Expected<sys::TimePoint<std::chrono::seconds>> getLastModified() const;
62 Expected<unsigned> getUID() const;
63 Expected<unsigned> getGID() const;
99 Expected<bool> isThinMember() const;
111 Expected<Child> getNext() const;
113 Expected<StringRef> getName() const;
[all …]
DELF.h100 Expected<const T *> getEntry(uint32_t Section, uint32_t Entry) const;
102 Expected<const T *> getEntry(const Elf_Shdr *Section, uint32_t Entry) const;
104 Expected<StringRef> getStringTable(const Elf_Shdr *Section) const;
105 Expected<StringRef> getStringTableForSymtab(const Elf_Shdr &Section) const;
106 Expected<StringRef> getStringTableForSymtab(const Elf_Shdr &Section,
109 Expected<ArrayRef<Elf_Word>> getSHNDXTable(const Elf_Shdr &Section) const;
110 Expected<ArrayRef<Elf_Word>> getSHNDXTable(const Elf_Shdr &Section,
122 Expected<const Elf_Sym *> getRelocationSymbol(const Elf_Rel *Rel,
125 static Expected<ELFFile> create(StringRef Object);
137 Expected<Elf_Shdr_Range> sections() const;
[all …]
DObjectFile.h148 Expected<StringRef> getName() const;
151 Expected<uint64_t> getAddress() const;
160 Expected<SymbolRef::Type> getType() const;
164 Expected<section_iterator> getSection() const;
210 virtual Expected<StringRef> getSymbolName(DataRefImpl Symb) const = 0;
213 virtual Expected<uint64_t> getSymbolAddress(DataRefImpl Symb) const = 0;
217 virtual Expected<SymbolRef::Type> getSymbolType(DataRefImpl Symb) const = 0;
218 virtual Expected<section_iterator>
290 virtual Expected<uint64_t> getStartAddress() const { in getStartAddress()
312 static Expected<OwningBinary<ObjectFile>>
[all …]
/external/clang/unittests/Tooling/
DRefactoringCallbacksTest.cpp23 const std::string &Expected, in expectRewritten() argument
36 EXPECT_EQ(Expected, Context.getRewrittenText(ID)); in expectRewritten()
41 std::string Expected = "void f() { ; }"; in TEST() local
43 expectRewritten(Code, Expected, id("id", declStmt()), Callback); in TEST()
48 std::string Expected = "#define A void f() { ; }\nA"; in TEST() local
50 expectRewritten(Code, Expected, id("id", declStmt()), Callback); in TEST()
55 std::string Expected = "#define A void f() { int i = 1; }"; in TEST() local
57 expectRewritten(Code, Expected, id("id", declStmt()), Callback); in TEST()
62 std::string Expected = "void f() { int i = 2; }"; in TEST() local
64 expectRewritten(Code, Expected, id("id", expr(integerLiteral())), in TEST()
[all …]
DRefactoringTest.cpp475 std::vector<Range> Expected = {Range(0, 4), Range(7, 2), Range(12, 5)}; in TEST() local
476 EXPECT_EQ(Expected, calculateRangesAfterReplacements(Replaces, Ranges)); in TEST()
482 std::vector<Range> Expected = {Range(5, 2), Range(10, 5), Range(20, 4)}; in TEST() local
483 EXPECT_EQ(Expected, calculateRangesAfterReplacements(Replaces, Ranges)); in TEST()
491 std::vector<Range> Expected = {Range(0, 2), Range(3, 4), Range(10, 5), in TEST() local
493 EXPECT_EQ(Expected, calculateRangesAfterReplacements(Replaces, Ranges)); in TEST()
501 std::vector<Range> Expected = {Range(0, 2), Range(3, 0), Range(4, 4), in TEST() local
503 EXPECT_EQ(Expected, calculateRangesAfterReplacements(Replaces, Ranges)); in TEST()
512 std::vector<Range> Expected = {Range(0, 1), Range(2, 4), Range(12, 5), in TEST() local
514 EXPECT_EQ(Expected, calculateRangesAfterReplacements(Replaces, Ranges)); in TEST()
[all …]
/external/google-breakpad/src/testing/gtest/test/
Dgtest_output_test_golden_lin.txt6 Expected: true
9 Expected: 2
40 Expected: 1
47 Expected: 1
54 Expected: true
62 Expected: (3) >= (a[i]), actual: 3 vs 9
66 Expected: (3) >= (a[i]), actual: 3 vs 6
78 gtest_output_test_.cc:#: Expected trace
88 Expected: 2
94 Expected: 1
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Bitcode/
DBitcodeReader.h42 ErrorOr<T> expectedToErrorOrAndEmitErrors(LLVMContext &Ctx, Expected<T> Val) { in expectedToErrorOrAndEmitErrors()
77 friend Expected<BitcodeFileContents>
80 Expected<std::unique_ptr<Module>> getModuleImpl(LLVMContext &Context,
98 Expected<std::unique_ptr<Module>> getLazyModule(LLVMContext &Context,
103 Expected<std::unique_ptr<Module>> parseModule(LLVMContext &Context);
107 Expected<BitcodeLTOInfo> getLTOInfo();
110 Expected<std::unique_ptr<ModuleSummaryIndex>> getSummary();
128 Expected<BitcodeFileContents> getBitcodeFileContents(MemoryBufferRef Buffer);
131 Expected<std::vector<BitcodeModule>>
138 Expected<std::unique_ptr<Module>>
[all …]
/external/google-breakpad/src/testing/test/
Dgmock_output_test_golden.txt24 Expected to be called twice, but has only 1 WillOnce().
39 Expected arg #0: is equal to 0
41 Expected: to be called once
52 Expected arg #0: is equal to 0
54 Expected: to be called once
62 Expected: to be called once
69 Expected: to be called once
96 Expected: the expectation is active
98 Expected: to be called once
101 Expected arg #0: is equal to 0
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/
DErrorTest.cpp481 EXPECT_EQ(ExitOnErr(Expected<int>(7)), 7) in TEST()
485 int &B = ExitOnErr(Expected<int&>(A)); in TEST()
493 EXPECT_EXIT(ExitOnErr(Expected<int>(make_error<CustomSubError>(0, 0))), in TEST()
502 int X = cantFail(Expected<int>(42)); in TEST()
506 int &Y = cantFail(Expected<int&>(Dummy)); in TEST()
522 int X = cantFail(Expected<int>(make_error<StringError>("foo", IEC))); in TEST()
533 Expected<int> A = 7; in TEST()
542 Expected<int&> B = A; in TEST()
554 EXPECT_DEATH({ Expected<int> A = 7; }, in TEST()
565 EXPECT_DEATH({ Expected<int> A = 7; *A; }, in TEST()
[all …]
DGlobPatternTest.cpp19 Expected<GlobPattern> Pat1 = GlobPattern::create(""); in TEST_F()
24 Expected<GlobPattern> Pat2 = GlobPattern::create("ab*c*def"); in TEST_F()
32 Expected<GlobPattern> Pat3 = GlobPattern::create("a??c"); in TEST_F()
38 Expected<GlobPattern> Pat4 = GlobPattern::create("[abc-fy-z]"); in TEST_F()
51 Expected<GlobPattern> Pat5 = GlobPattern::create("[^abc-fy-z]"); in TEST_F()
66 Expected<GlobPattern> Pat1 = GlobPattern::create("["); in TEST_F()
72 Expected<GlobPattern> Pat1 = GlobPattern::create("a*\xFF"); in TEST_F()
75 Expected<GlobPattern> Pat2 = GlobPattern::create("[\xFF-\xFF]"); in TEST_F()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Object/
DArchive.cpp67 Expected<StringRef> NameOrErr = getName(Size); in ArchiveMemberHeader()
87 Expected<StringRef> NameOrErr = getName(Size); in ArchiveMemberHeader()
101 Expected<StringRef> ArchiveMemberHeader::getRawName() const { in getRawName()
129 Expected<StringRef> ArchiveMemberHeader::getName(uint64_t Size) const { in getName()
143 Expected<StringRef> NameOrErr = getRawName(); in getName()
227 Expected<uint32_t> ArchiveMemberHeader::getSize() const { in getSize()
245 Expected<sys::fs::perms> ArchiveMemberHeader::getAccessMode() const { in getAccessMode()
263 Expected<sys::TimePoint<std::chrono::seconds>>
284 Expected<unsigned> ArchiveMemberHeader::getUID() const { in getUID()
303 Expected<unsigned> ArchiveMemberHeader::getGID() const { in getGID()
[all …]
DIRObjectFile.cpp75 Expected<MemoryBufferRef>
89 Expected<MemoryBufferRef>
98 Expected<std::unique_ptr<ObjectFile>> ObjFile = in findBitcodeInMemBuffer()
109 Expected<std::unique_ptr<IRObjectFile>>
111 Expected<MemoryBufferRef> BCOrErr = findBitcodeInMemBuffer(Object); in create()
115 Expected<std::vector<BitcodeModule>> BMsOrErr = in create()
122 Expected<std::unique_ptr<Module>> MOrErr = in create()
135 Expected<IRSymtabFile> object::readIRSymtab(MemoryBufferRef MBRef) { in readIRSymtab()
137 Expected<MemoryBufferRef> BCOrErr = in readIRSymtab()
142 Expected<BitcodeFileContents> BFCOrErr = getBitcodeFileContents(*BCOrErr); in readIRSymtab()
[all …]
/external/googletest/googletest/test/
Dgoogletest-output-test-golden-lin.txt6 Expected: true
10 Expected equality of these values:
42 Expected equality of these values:
50 Expected equality of these values:
60 Expected equality of these values:
76 Expected equality of these values:
86 Expected equality of these values:
98 Expected: true
108 Expected: (3) >= (a[i]), actual: 3 vs 9
114 Expected: (3) >= (a[i]), actual: 3 vs 6
[all …]
/external/googletest/googlemock/test/
Dgmock_output_test_golden.txt24 Expected to be called twice, but has only 1 WillOnce().
39 Expected arg #0: is equal to 0
41 Expected: to be called once
52 Expected arg #0: is equal to 0
54 Expected: to be called once
62 Expected: to be called once
69 Expected: to be called once
96 Expected: the expectation is active
98 Expected: to be called once
101 Expected arg #0: is equal to 0
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ADT/
DStringRefTest.cpp563 uint64_t Expected; member
580 int64_t Expected; member
613 if (static_cast<uint8_t>(Unsigned[i].Expected) == Unsigned[i].Expected) { in TEST()
615 EXPECT_EQ(U8, Unsigned[i].Expected); in TEST()
620 if (static_cast<uint16_t>(Unsigned[i].Expected) == Unsigned[i].Expected) { in TEST()
622 EXPECT_EQ(U16, Unsigned[i].Expected); in TEST()
627 if (static_cast<uint32_t>(Unsigned[i].Expected) == Unsigned[i].Expected) { in TEST()
629 EXPECT_EQ(U32, Unsigned[i].Expected); in TEST()
634 if (static_cast<uint64_t>(Unsigned[i].Expected) == Unsigned[i].Expected) { in TEST()
636 EXPECT_EQ(U64, Unsigned[i].Expected); in TEST()
[all …]
/external/parameter-framework/upstream/test/tokenizer/
DTest.cpp42 using Expected = vector<string>; typedef
50 Expected expected{"a", "bcd", "ef"};
59 Expected expected{};
68 Expected expected{"a", "bc"};
78 Expected expected{"a", "bcd", "ef g", "h"};
89 Expected expected{};
98 Expected expected{"", ""};
107 Expected expected{"", "a", "", "b", "", "c", "d", ""};
/external/swiftshader/third_party/llvm-7.0/llvm/tools/bugpoint/
DMiscompilation.cpp53 Expected<TestResult> doTest(std::vector<std::string> &Prefix,
61 Expected<ReduceMiscompilingPasses::TestResult>
83 Expected<bool> Diff = BD.diffProgram(BD.getProgram(), BitcodeResult, "", in doTest()
189 Expected<bool> (*TestFn)(BugDriver &, std::unique_ptr<Module>,
194 Expected<bool> (*F)(BugDriver &, in ReduceMiscompilingFunctions()
199 Expected<TestResult> doTest(std::vector<Function *> &Prefix, in doTest()
202 Expected<bool> Ret = TestFuncs(Suffix); in doTest()
209 Expected<bool> Ret = TestFuncs(Prefix); in doTest()
218 Expected<bool> TestFuncs(const std::vector<Function *> &Prefix);
228 static Expected<std::unique_ptr<Module>> testMergedProgram(const BugDriver &BD, in testMergedProgram()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/DebugInfo/PDB/Native/
DPDBFile.h70 Expected<ArrayRef<uint8_t>> getBlockData(uint32_t BlockIndex,
95 Expected<InfoStream &> getPDBInfoStream();
96 Expected<DbiStream &> getPDBDbiStream();
97 Expected<GlobalsStream &> getPDBGlobalsStream();
98 Expected<TpiStream &> getPDBTpiStream();
99 Expected<TpiStream &> getPDBIpiStream();
100 Expected<PublicsStream &> getPDBPublicsStream();
101 Expected<SymbolStream &> getPDBSymbolStream();
102 Expected<PDBStringTable &> getStringTable();
118 Expected<std::unique_ptr<msf::MappedBlockStream>>
/external/expat/tests/
Dxmltest.log.expected3 Expected not well-formed: ibm/not-wf/misc/432gewf.xml
4 Expected not well-formed: xmltest/not-wf/not-sa/005.xml
5 Expected not well-formed: sun/not-wf/uri01.xml
6 Expected not well-formed: oasis/p06fail1.xml
7 Expected not well-formed: oasis/p08fail1.xml
8 Expected not well-formed: oasis/p08fail2.xml
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DError.h168 template <typename T> friend class Expected; variable
427 template <class T> class LLVM_NODISCARD Expected {
429 template <class OtherT> friend class Expected; variable
449 Expected(Error Err) in Expected() function
463 Expected(ErrorSuccess) = delete;
468 Expected(OtherT &&Val,
481 Expected(Expected &&Other) { moveConstruct(std::move(Other)); } in Expected() function
486 Expected(Expected<OtherT> &&Other,
495 explicit Expected(
496 Expected<OtherT> &&Other,
[all …]
/external/llvm/lib/Fuzzer/test/
DSimpleDictionaryTest.cpp17 const char *Expected = "ElvisPresley"; in LLVMFuzzerTestOneInput() local
18 if (Size < strlen(Expected)) return 0; in LLVMFuzzerTestOneInput()
20 for (size_t i = 0; Expected[i]; i++) in LLVMFuzzerTestOneInput()
21 if (Expected[i] + Zero == Data[i]) in LLVMFuzzerTestOneInput()
23 if (Match == strlen(Expected)) { in LLVMFuzzerTestOneInput()

12345678910>>...31