Home
last modified time | relevance | path

Searched refs:Pair (Results 1 – 25 of 237) sorted by relevance

12345678910

/third_party/skia/third_party/externals/dawn/src/tests/unittests/
DSystemUtilsTests.cpp22 using ::testing::Pair;
27 EXPECT_THAT(GetEnvironmentVar("NonexistentEnvironmentVar"), Pair("", false)); in TEST()
34 EXPECT_THAT(GetEnvironmentVar("EnvironmentVarForTest"), Pair("NewEnvironmentVarValue", true)); in TEST()
38 Pair("OverrideEnvironmentVarValue", true)); in TEST()
61 Pair("NewEnvironmentVarValue", true)); in TEST()
63 EXPECT_THAT(GetEnvironmentVar("ScopedEnvironmentVarForTest"), Pair("original", true)); in TEST()
69 Pair("NewEnvironmentVarValue", true)); in TEST()
71 EXPECT_THAT(GetEnvironmentVar("ScopedEnvironmentVarForTest"), Pair("original", true)); in TEST()
76 EXPECT_THAT(GetEnvironmentVar("ScopedEnvironmentVarForTest"), Pair("outer", true)); in TEST()
79 EXPECT_THAT(GetEnvironmentVar("ScopedEnvironmentVarForTest"), Pair("inner", true)); in TEST()
[all …]
/third_party/gn/src/gn/
Dinherited_libraries_unittest.cc15 std::pair<const Target*, bool> Pair(const Target* t, bool b) { in Pair() function
33 EXPECT_EQ(Pair(&a, false), result[0]); in TEST()
34 EXPECT_EQ(Pair(&b, false), result[1]); in TEST()
41 EXPECT_EQ(Pair(&a, false), result[0]); in TEST()
42 EXPECT_EQ(Pair(&b, false), result[1]); in TEST()
49 EXPECT_EQ(Pair(&a, true), result[0]); in TEST()
50 EXPECT_EQ(Pair(&b, true), result[1]); in TEST()
57 EXPECT_EQ(Pair(&a, true), result[0]); in TEST()
58 EXPECT_EQ(Pair(&b, true), result[1]); in TEST()
86 EXPECT_EQ(Pair(&a, false), result[0]); in TEST()
[all …]
/third_party/protobuf/js/experimental/runtime/kernel/
Dtextencoding_test.js39 class Pair { class
46 return new Pair(s, textEncoder.encode(s).buffer);
54 return Pair.fromString(String.fromCharCode(charCode));
78 Pair.fromString('').expectPairToMatch();
83 Pair.fromString('hello').expectPairToMatch();
84 Pair.fromString('HELLO1!');
87 Pair.fromString('©').expectPairToMatch();
90 Pair.fromString('❄').expectPairToMatch();
93 Pair.fromString('��').expectPairToMatch();
98 Pair.fromCharCode(i).expectPairToMatch();
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/container/
Dflat_hash_map_test.cc35 using ::testing::Pair;
116 for (const auto& p : t) EXPECT_THAT(p, Pair(_, _)); in TEST()
170 EXPECT_THAT(m, UnorderedElementsAre(Pair(1, 1))); in TEST()
177 EXPECT_THAT(m, UnorderedElementsAre(Pair(1, 2))); in TEST()
184 EXPECT_THAT(m, UnorderedElementsAre(Pair(1, 2), Pair(2, 3))); in TEST()
191 EXPECT_THAT(m, UnorderedElementsAre(Pair(1, 2), Pair(2, 3))); in TEST()
226 EXPECT_THAT(m, UnorderedElementsAre(Pair(2, 9))); in TEST()
230 EXPECT_THAT(m, UnorderedElementsAre(Pair(1, 17), Pair(2, 9))); in TEST()
246 EXPECT_THAT(s, UnorderedElementsAre(Pair(1, 1), Pair(2, 2), Pair(3, 3), in TEST()
247 Pair(4, 4), Pair(5, 5))); in TEST()
[all …]
Dnode_hash_map_test.cc30 using ::testing::Pair;
174 return Pair(Field(&NonMovableKey::i, key), value); in TEST()
233 EXPECT_THAT(s, UnorderedElementsAre(Pair(1, 1), Pair(2, 2), Pair(3, 3), in TEST()
234 Pair(4, 4), Pair(5, 5))); in TEST()
241 EXPECT_THAT(s, UnorderedElementsAre(Pair(2, 2), Pair(4, 4))); in TEST()
247 EXPECT_THAT(s, UnorderedElementsAre(Pair(1, 1), Pair(3, 3), Pair(5, 5))); in TEST()
253 EXPECT_THAT(s, UnorderedElementsAre(Pair(1, 1), Pair(3, 3), Pair(5, 5))); in TEST()
268 EXPECT_THAT(map, testing::ElementsAre(Pair("key", "mapped"))); in TEST()
/third_party/typescript/tests/baselines/reference/
DgenericInstantiationEquivalentToObjectLiteral.types2 interface Pair<T1, T2> { first: T1; second: T2; }
6 var x: Pair<string, number>
7 >x : Pair<string, number>
16 >x : Pair<string, number>
20 >y = x : Pair<string, number>
22 >x : Pair<string, number>
24 declare function f<T, U>(x: Pair<T, U>);
25 >f : <T, U>(x: Pair<T, U>) => any
26 >x : Pair<T, U>
36 >f : <T, U>(x: Pair<T, U>) => any
[all …]
DgenericInstantiationEquivalentToObjectLiteral.symbols2 interface Pair<T1, T2> { first: T1; second: T2; }
3 >Pair : Symbol(Pair, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 0, 0))
6 >first : Symbol(Pair.first, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 0, 24))
8 >second : Symbol(Pair.second, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 0, 35))
11 var x: Pair<string, number>
13 >Pair : Symbol(Pair, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 0, 0))
28 declare function f<T, U>(x: Pair<T, U>);
33 >Pair : Symbol(Pair, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 0, 0))
DmappedTypeIndexedAccess.types17 type Pair<T> = Pairs<T>[keyof T];
18 >Pair : Pair<T>
32 let pair1: Pair<FooBar> = {
33 >pair1 : Pair<FooBar>
DmappedTypeIndexedAccess.symbols24 type Pair<T> = Pairs<T>[keyof T];
25 >Pair : Symbol(Pair, Decl(mappedTypeIndexedAccess.ts, 7, 2))
43 let pair1: Pair<FooBar> = {
45 >Pair : Symbol(Pair, Decl(mappedTypeIndexedAccess.ts, 7, 2))
/third_party/rust/crates/syn/src/
Dpunctuated.rs193 pub fn pop(&mut self) -> Option<Pair<T, P>> { in pop()
195 self.last.take().map(|t| Pair::End(*t)) in pop()
197 self.inner.pop().map(|(t, p)| Pair::Punctuated(t, p)) in pop()
459 impl<T, P> FromIterator<Pair<T, P>> for Punctuated<T, P> {
460 fn from_iter<I: IntoIterator<Item = Pair<T, P>>>(i: I) -> Self { in from_iter()
467 impl<T, P> Extend<Pair<T, P>> for Punctuated<T, P> {
468 fn extend<I: IntoIterator<Item = Pair<T, P>>>(&mut self, i: I) { in extend()
480 Pair::Punctuated(a, b) => self.inner.push((a, b)), in extend()
481 Pair::End(a) => { in extend()
540 type Item = Pair<&'a T, &'a P>;
[all …]
/third_party/flutter/skia/src/core/
DSkPtrRecorder.cpp11 Pair* p = fList.begin(); in reset()
12 Pair* stop = fList.end(); in reset()
20 bool SkPtrSet::Less(const Pair& a, const Pair& b) { in Less()
30 Pair pair; in find()
33 int index = SkTSearch<Pair, Less>(fList.begin(), count, pair, sizeof(pair)); in find()
46 Pair pair; in add()
49 int index = SkTSearch<Pair, Less>(fList.begin(), count, pair, sizeof(pair)); in add()
65 const Pair* p = fList.begin(); in copyToArray()
/third_party/skia/src/core/
DSkPtrRecorder.cpp11 Pair* p = fList.begin(); in reset()
12 Pair* stop = fList.end(); in reset()
20 bool SkPtrSet::Less(const Pair& a, const Pair& b) { in Less()
30 Pair pair; in find()
33 int index = SkTSearch<Pair, Less>(fList.begin(), count, pair, sizeof(pair)); in find()
46 Pair pair; in add()
49 int index = SkTSearch<Pair, Less>(fList.begin(), count, pair, sizeof(pair)); in add()
65 const Pair* p = fList.begin(); in copyToArray()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
DPair.java19 public class Pair<F, S> { class
23 protected Pair(F first, S second) { in Pair() method in Pair
34 public static <F, S> Pair<F, S> of(F first, S second) { in of()
38 return new Pair<F, S>(first, second); in of()
46 if (!(other instanceof Pair)) { in equals()
49 Pair<?, ?> rhs = (Pair<?, ?>) other; in equals()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DPair.java17 public class Pair<F, S> { class
21 protected Pair(F first, S second) { in Pair() method in Pair
32 public static <F, S> Pair<F, S> of(F first, S second) { in of()
36 return new Pair<F, S>(first, second); in of()
44 if (!(other instanceof Pair)) { in equals()
47 Pair<?, ?> rhs = (Pair<?, ?>) other; in equals()
/third_party/vk-gl-cts/external/vulkancts/data/vulkan/amber/spirv_assembly/instruction/compute/undef/
Dundefined_spec_constant_composite.amber25 ; struct Pair {
30 ; const Pair constant_pair = { 100, 200 };
34 ; Pair spec_constant_pair = { constantFirst, 200 };
44 ; int add_first_and_second (int value, Pair p1, Pair p2) {
82 %Pair = OpTypeStruct %int %int
83 %_ptr_Function_Pair = OpTypePointer Function %Pair
97 … ; Composed a spec constant Pair with an undefined int in the second member.
99 %spec_const_Pair = OpSpecConstantComposite %Pair %spec_constant %undef_int
100 ; Composed a constant Pair with the undefined int in the first member.
101 %const_Pair = OpConstantComposite %Pair %undef_int %int_200
[all …]
Dundefined_constant_composite.amber25 ; struct Pair {
30 ; const Pair constant_pair = { 100, 200 };
40 ; int add_second (int value, Pair pair) {
77 %Pair = OpTypeStruct %int %int
78 %_ptr_Function_Pair = OpTypePointer Function %Pair
92 ; Composed a constant Pair with the undefined int in the first member.
93 %const_Pair = OpConstantComposite %Pair %undef_int %int_200
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DDependenceAnalysis.cpp819 for (Subscript *Pair : Pairs) { in unifySubscriptType()
820 const SCEV *Src = Pair->Src; in unifySubscriptType()
821 const SCEV *Dst = Pair->Dst; in unifySubscriptType()
844 for (Subscript *Pair : Pairs) { in unifySubscriptType()
845 const SCEV *Src = Pair->Src; in unifySubscriptType()
846 const SCEV *Dst = Pair->Dst; in unifySubscriptType()
857 Pair->Src = SE->getSignExtendExpr(Src, widestType); in unifySubscriptType()
860 Pair->Dst = SE->getSignExtendExpr(Dst, widestType); in unifySubscriptType()
869 void DependenceInfo::removeMatchingExtensions(Subscript *Pair) { in removeMatchingExtensions() argument
870 const SCEV *Src = Pair->Src; in removeMatchingExtensions()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DLLVMContextImpl.cpp52 for (auto &Pair : InstructionMetadata) in ~LLVMContextImpl() local
53 Pair.first->dump(); in ~LLVMContextImpl()
68 for (auto &Pair : ValuesAsMetadata) in ~LLVMContextImpl() local
69 Pair.second->dropUsers(); in ~LLVMContextImpl()
70 for (auto &Pair : MetadataAsValues) in ~LLVMContextImpl() local
71 Pair.second->dropUse(); in ~LLVMContextImpl()
132 for (auto &Pair : MetadataAsValues) in ~LLVMContextImpl() local
133 MDVs.push_back(Pair.second); in ~LLVMContextImpl()
140 for (auto &Pair : ValuesAsMetadata) in ~LLVMContextImpl() local
141 delete Pair.second; in ~LLVMContextImpl()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/ObjCARC/
DBlotMapVector.h56 std::pair<typename MapTy::iterator, bool> Pair = variable
58 if (Pair.second) {
60 Pair.first->second = Num;
64 return Vector[Pair.first->second].second;
68 std::pair<typename MapTy::iterator, bool> Pair = in insert() local
70 if (Pair.second) { in insert()
72 Pair.first->second = Num; in insert()
76 return std::make_pair(Vector.begin() + Pair.first->second, false); in insert()
/third_party/skia/third_party/externals/abseil-cpp/absl/random/
Ddiscrete_distribution_test.cc103 using testing::Pair; in TEST()
114 EXPECT_THAT(q, testing::ElementsAre(Pair(0.5, 2), // in TEST()
115 Pair(1.0, _), // in TEST()
116 Pair(1.0, _))); in TEST()
137 EXPECT_THAT(q, testing::ElementsAre(Pair(b0, 3), // in TEST()
138 Pair(b1, 3), // in TEST()
139 Pair(1.0, _), // in TEST()
140 Pair(b3, 2), // in TEST()
141 Pair(b1, 3))); in TEST()
/third_party/rust/crates/cxx/syntax/
Dmangle.rs77 use crate::syntax::{ExternFn, Pair, Types};
102 pub fn operator(receiver: &Pair, operator: &'static str) -> Symbol { in operator() argument
113 pub fn c_trampoline(efn: &ExternFn, var: &Pair, types: &Types) -> Symbol { in c_trampoline() argument
118 pub fn r_trampoline(efn: &ExternFn, var: &Pair, types: &Types) -> Symbol { in r_trampoline() argument
Dmod.rs88 pub name: Pair,
103 pub name: Pair,
116 pub name: Pair,
143 pub name: Pair,
156 pub name: Pair,
199 pub name: Pair,
221 pub name: Pair,
294 pub struct Pair { struct
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DRegisterPressure.h305 LaneBitmask insert(RegisterMaskPair Pair) { in insert() argument
306 unsigned SparseIndex = getSparseIndexFromReg(Pair.RegUnit); in insert()
307 auto InsertRes = Regs.insert(IndexMaskPair(SparseIndex, Pair.LaneMask)); in insert()
310 InsertRes.first->LaneMask |= Pair.LaneMask; in insert()
318 LaneBitmask erase(RegisterMaskPair Pair) { in erase() argument
319 unsigned SparseIndex = getSparseIndexFromReg(Pair.RegUnit); in erase()
324 I->LaneMask &= ~Pair.LaneMask; in erase()
543 void discoverLiveOut(RegisterMaskPair Pair);
545 void discoverLiveIn(RegisterMaskPair Pair);
561 void discoverLiveInOrOut(RegisterMaskPair Pair,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/AsmParser/
DLLLexer.cpp75 uint64_t Pair[2]) { in HexToIntPair()
76 Pair[0] = 0; in HexToIntPair()
80 Pair[0] *= 16; in HexToIntPair()
81 Pair[0] += hexDigitValue(*Buffer); in HexToIntPair()
84 Pair[1] = 0; in HexToIntPair()
86 Pair[1] *= 16; in HexToIntPair()
87 Pair[1] += hexDigitValue(*Buffer); in HexToIntPair()
96 uint64_t Pair[2]) { in FP80HexToIntPair()
97 Pair[1] = 0; in FP80HexToIntPair()
100 Pair[1] *= 16; in FP80HexToIntPair()
[all …]
/third_party/rust/crates/syn/tests/
Dtest_iterators.rs1 use syn::punctuated::{Pair, Punctuated};
28 assert_eq!(p.pairs().next_back().map(Pair::into_value), Some(&4)); in pairs()
30 p.pairs_mut().next_back().map(Pair::into_value), in pairs()
33 assert_eq!(p.into_pairs().next_back().map(Pair::into_value), Some(4)); in pairs()

12345678910