/third_party/skia/third_party/externals/dawn/src/tests/unittests/ |
H A D | SystemUtilsTests.cpp | 22 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("inne in TEST() [all...] |
/third_party/gn/src/gn/ |
H A D | inherited_libraries_unittest.cc | 12 // In these tests, Pair can't be used conveniently because the 15 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( in TEST() [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/container/ |
H A D | flat_hash_map_test.cc | 35 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( in TEST() [all...] |
H A D | node_hash_map_test.cc | 30 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( in TEST() [all...] |
/third_party/rust/crates/syn/src/ |
H A D | punctuated.rs | 182 pub fn pop(&mut self) -> Option<Pair<T, P>> { in pop() 184 self.last.take().map(|t| Pair::End(*t)) in pop() 186 self.inner.pop().map(|(t, p)| Pair::Punctuated(t, p)) in pop() 453 impl<T, P> FromIterator<Pair<T, P>> for Punctuated<T, P> { 454 fn from_iter<I: IntoIterator<Item = Pair<T, P>>>(i: I) -> Self { in from_iter() 461 impl<T, P> Extend<Pair<T, P>> for Punctuated<T, P> 465 fn extend<I: IntoIterator<Item = Pair<T, P>>>(&mut self, i: I) { in extend() 475 I: Iterator<Item = Pair<T, P>>, in do_extend() 480 panic!("Punctuated extended with items after a Pair::End"); in do_extend() 483 Pair in do_extend() 927 pub enum Pair<T, P> { global() enum 932 impl<T, P> Pair<T, P> { global() impls 1010 impl<T, P> Pair<&T, &P> { global() impls [all...] |
H A D | gen_helper.rs | 3 use crate::punctuated::{Pair, Punctuated}; 29 .map(Pair::into_tuple) in lift() 30 .map(|(t, u)| Pair::new(f(t), u)) in lift()
|
/third_party/skia/src/core/ |
H A D | SkPtrRecorder.cpp | 11 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()
|
H A D | SkPtrRecorder.h | 86 struct Pair { struct in SkPtrSet 95 SkTDArray<Pair> fList; 97 static bool Less(const Pair& a, const Pair& b);
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
H A D | Pair.java | 17 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() 34 throw new IllegalArgumentException("Pair.of requires non null values."); 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/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/ |
H A D | Pair.java | 19 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() 36 throw new IllegalArgumentException("Pair.of requires non null values."); 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/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
H A D | LLVMContextImpl.cpp | 52 for (auto &Pair : InstructionMetadata) in ~LLVMContextImpl() 53 Pair.first->dump(); in ~LLVMContextImpl() 68 for (auto &Pair : ValuesAsMetadata) in ~LLVMContextImpl() 69 Pair.second->dropUsers(); in ~LLVMContextImpl() 70 for (auto &Pair : MetadataAsValues) in ~LLVMContextImpl() 71 Pair.second->dropUse(); in ~LLVMContextImpl() 132 for (auto &Pair : MetadataAsValues) in ~LLVMContextImpl() 133 MDVs.push_back(Pair.second); in ~LLVMContextImpl() 140 for (auto &Pair : ValuesAsMetadata) in ~LLVMContextImpl() 141 delete Pair in ~LLVMContextImpl() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/ObjCARC/ |
H A D | BlotMapVector.h | 56 std::pair<typename MapTy::iterator, bool> Pair = in operator []() local 58 if (Pair.second) { in operator []() 60 Pair.first->second = Num; in operator []() 64 return Vector[Pair.first->second].second; in operator []() 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/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
H A D | DependenceAnalysis.cpp | 819 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 in removeMatchingExtensions() 3261 tryDelinearize(Instruction *Src, Instruction *Dst, SmallVectorImpl<Subscript> &Pair) tryDelinearize() argument [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/random/ |
H A D | discrete_distribution_test.cc | 103 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/syn/tests/ |
H A D | test_iterators.rs | 3 use syn::punctuated::{Pair, Punctuated}; 30 assert_eq!(p.pairs().next_back().map(Pair::into_value), Some(&4)); in pairs() 32 p.pairs_mut().next_back().map(Pair::into_value), in pairs() 35 assert_eq!(p.into_pairs().next_back().map(Pair::into_value), Some(4)); in pairs()
|
/third_party/rust/crates/cxx/gen/build/src/syntax/ |
H A D | mod.rs | 88 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 { structure names
|
/third_party/rust/crates/cxx/gen/lib/src/syntax/ |
H A D | mod.rs | 88 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 { structure names
|
/third_party/rust/crates/cxx/macro/src/syntax/ |
H A D | mod.rs | 88 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 { structure names
|
/third_party/rust/crates/cxx/syntax/ |
H A D | mod.rs | 88 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 { structure names
|
/third_party/rust/crates/cxx/gen/cmd/src/syntax/ |
H A D | mod.rs | 88 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 { structure names
|
/third_party/typescript/tests/baselines/reference/ |
H A D | genericInstantiationEquivalentToObjectLiteral.js | 2 interface Pair<T1, T2> { first: T1; second: T2; } 3 var x: Pair<string, number> 9 declare function f<T, U>(x: Pair<T, U>);
|
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/ |
H A D | container_memory.h | 253 // If Pair is a standard-layout type, OffsetOf<Pair>::kFirst and 254 // OffsetOf<Pair>::kSecond are equivalent to offsetof(Pair, first) and 255 // offsetof(Pair, second) respectively. Otherwise they are -1. 259 template <class Pair, class = std::true_type> 265 template <class Pair> 266 struct OffsetOf<Pair, typename std::is_standard_layout<Pair>::type> { 267 static constexpr size_t kFirst = offsetof(Pair, firs 274 struct Pair { global() struct [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/ADT/ |
H A D | DenseMapInfo.h | 138 typedef std::pair<T, U> Pair; typedef 142 static inline Pair getEmptyKey() { in getEmptyKey() 146 static inline Pair getTombstoneKey() { in getTombstoneKey() 150 static unsigned getHashValue(const Pair& PairVal) { in getHashValue() 163 static bool isEqual(const Pair &LHS, const Pair &RHS) { in isEqual()
|
/third_party/benchmark/test/ |
H A D | commandlineflags_gtest.cc | 202 testing::ElementsAre(testing::Pair("foo", "bar"))); in TEST() 208 testing::ElementsAre(testing::Pair("foo", "bar"))); in TEST() 215 testing::ElementsAre(testing::Pair("foo", "bar"))); in TEST() 222 testing::UnorderedElementsAre(testing::Pair("foo", "bar"), in TEST() 223 testing::Pair("baz", "qux"))); in TEST()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/ |
H A D | RegisterPressure.h | 303 /// Mark the \p Pair.LaneMask lanes of \p Pair.Reg as live. 304 /// Returns the previously live lanes of \p Pair.Reg. 305 LaneBitmask insert(RegisterMaskPair Pair) { 306 unsigned SparseIndex = getSparseIndexFromReg(Pair.RegUnit); 307 auto InsertRes = Regs.insert(IndexMaskPair(SparseIndex, Pair.LaneMask)); 310 InsertRes.first->LaneMask |= Pair.LaneMask; 316 /// Clears the \p Pair.LaneMask lanes of \p Pair.Reg (mark them as dead). 317 /// Returns the previously live lanes of \p Pair [all...] |