Home
last modified time | relevance | path

Searched refs:UnguessableToken (Results 1 – 25 of 51) sorted by relevance

123

/external/libchrome/base/
Dunguessable_token_unittest.cc17 void TestSmallerThanOperator(const UnguessableToken& a, in TestSmallerThanOperator()
18 const UnguessableToken& b) { in TestSmallerThanOperator()
26 UnguessableToken token = UnguessableToken::Deserialize(1, 2); in TEST()
27 UnguessableToken same_token = UnguessableToken::Deserialize(1, 2); in TEST()
28 UnguessableToken diff_token = UnguessableToken::Deserialize(1, 3); in TEST()
43 UnguessableToken token = UnguessableToken::Create(); in TEST()
47 UnguessableToken copied_token(token); in TEST()
51 UnguessableToken uninitialized; in TEST()
55 EXPECT_TRUE(UnguessableToken().is_empty()); in TEST()
56 EXPECT_FALSE(UnguessableToken()); in TEST()
[all …]
Dunguessable_token.cc13 UnguessableToken::UnguessableToken(uint64_t high, uint64_t low) in UnguessableToken() function in base::UnguessableToken
16 std::string UnguessableToken::ToString() const { in ToString()
21 UnguessableToken UnguessableToken::Create() { in Create()
22 UnguessableToken token; in Create()
30 UnguessableToken UnguessableToken::Deserialize(uint64_t high, uint64_t low) { in Deserialize()
34 return UnguessableToken(high, low); in Deserialize()
37 std::ostream& operator<<(std::ostream& out, const UnguessableToken& token) { in operator <<()
Dunguessable_token.h40 class BASE_EXPORT UnguessableToken {
43 static UnguessableToken Create();
50 static UnguessableToken Deserialize(uint64_t high, uint64_t low);
54 constexpr UnguessableToken() = default;
75 bool operator<(const UnguessableToken& other) const {
79 bool operator==(const UnguessableToken& other) const {
83 bool operator!=(const UnguessableToken& other) const {
89 UnguessableToken(uint64_t high, uint64_t low);
98 const UnguessableToken& token);
102 size_t operator()(const base::UnguessableToken& token) const { in operator()
Dvalue_conversions.h17 class UnguessableToken; variable
29 const UnguessableToken& token);
31 UnguessableToken* token);
Dvalue_conversions.cc66 const UnguessableToken& token) { in CreateUnguessableTokenValue()
75 bool GetValueAsUnguessableToken(const Value& value, UnguessableToken* token) { in GetValueAsUnguessableToken()
94 *token = UnguessableToken::Deserialize(representation.field.high, in GetValueAsUnguessableToken()
/external/libchrome/base/android/java/src/org/chromium/base/
DUnguessableToken.java21 public class UnguessableToken implements Parcelable { class
25 private UnguessableToken(long high, long low) { in UnguessableToken() method in UnguessableToken
31 private static UnguessableToken create(long high, long low) { in create()
32 return new UnguessableToken(high, low); in create()
56 public static final Parcelable.Creator<UnguessableToken> CREATOR =
57 new Parcelable.Creator<UnguessableToken>() {
59 public UnguessableToken createFromParcel(Parcel source) {
66 return new UnguessableToken(high, low);
70 public UnguessableToken[] newArray(int size) {
71 return new UnguessableToken[size];
[all …]
/external/libchrome/mojo/public/cpp/base/
Dunguessable_token_unittest.cc13 TEST(UnguessableTokenTest, UnguessableToken) { in TEST() argument
14 base::UnguessableToken in = base::UnguessableToken::Create(); in TEST()
15 base::UnguessableToken out; in TEST()
18 mojo::test::SerializeAndDeserialize<mojom::UnguessableToken>(&in, &out)); in TEST()
Dunguessable_token_mojom_traits.h16 static_assert(sizeof(base::UnguessableToken) == 2 * sizeof(uint64_t),
22 base::UnguessableToken> { in COMPONENT_EXPORT()
23 static uint64_t high(const base::UnguessableToken& token) { in COMPONENT_EXPORT()
27 static uint64_t low(const base::UnguessableToken& token) { in COMPONENT_EXPORT()
32 base::UnguessableToken* out); in COMPONENT_EXPORT()
Dunguessable_token_mojom_traits.cc11 base::UnguessableToken>::
13 base::UnguessableToken* out) { in Read()
21 *out = base::UnguessableToken::Deserialize(high, low); in Read()
Dunguessable_token.typemap13 type_mappings = [ "mojo_base.mojom.UnguessableToken=base::UnguessableToken" ]
/external/libchrome/base/android/
Dunguessable_token_android_unittest.cc17 base::UnguessableToken token = base::UnguessableToken::Deserialize(high, low); in TEST()
20 base::UnguessableToken result = in TEST()
30 base::UnguessableToken token = base::UnguessableToken::Deserialize(high, low); in TEST()
35 base::UnguessableToken token_clone = in TEST()
Dunguessable_token_android.cc14 const base::UnguessableToken& token) { in Create()
22 base::UnguessableToken UnguessableTokenAndroid::FromJavaUnguessableToken( in FromJavaUnguessableToken()
30 return base::UnguessableToken::Deserialize(high, low); in FromJavaUnguessableToken()
Dunguessable_token_android.h22 const base::UnguessableToken& token);
25 static base::UnguessableToken FromJavaUnguessableToken(
/external/libchrome/base/memory/
Dshared_memory_handle.h74 base::UnguessableToken GetGUID() const;
88 SharedMemoryHandle(HANDLE h, size_t size, const base::UnguessableToken& guid);
101 const base::UnguessableToken& guid);
115 SharedMemoryHandle(mach_vm_size_t size, const base::UnguessableToken& guid);
123 const base::UnguessableToken& guid);
183 const base::UnguessableToken& guid);
230 base::UnguessableToken guid_;
Dshared_memory_tracker.h30 static std::string GetDumpNameForTracing(const UnguessableToken& id);
33 const UnguessableToken& id);
69 const UnguessableToken& mapped_id,
74 UsageInfo(size_t size, const UnguessableToken& id) in UsageInfo()
78 UnguessableToken mapped_id;
Dshared_memory_mapping.h59 const UnguessableToken& guid() const { in guid()
68 const UnguessableToken& guid);
79 UnguessableToken guid_;
105 const UnguessableToken& guid);
137 const UnguessableToken& guid);
Dplatform_shared_memory_region.h131 const UnguessableToken& guid);
195 const UnguessableToken& GetGUID() const { return guid_; } in GetGUID()
216 const UnguessableToken& guid);
221 UnguessableToken guid_;
Dplatform_shared_memory_region_android.cc38 const UnguessableToken& guid) { in Take()
153 UnguessableToken guid = UnguessableToken::Create(); in Create()
199 const UnguessableToken& guid) in PlatformSharedMemoryRegion()
Dshared_memory_mapping.cc64 const UnguessableToken& guid) in SharedMemoryMapping()
102 const UnguessableToken& guid) in ReadOnlySharedMemoryMapping()
114 const UnguessableToken& guid) in WritableSharedMemoryMapping()
Dshared_memory_handle_posix.cc20 const base::UnguessableToken& guid) in SharedMemoryHandle()
28 handle.guid_ = UnguessableToken::Create(); in ImportHandle()
Dshared_memory_tracker.cc25 const UnguessableToken& id) { in GetDumpNameForTracing()
32 SharedMemoryTracker::GetGlobalDumpIdForTracing(const UnguessableToken& id) { in GetGlobalDumpIdForTracing()
110 const UnguessableToken& mapped_id, in GetOrCreateSharedMemoryDumpInternal()
Dshared_memory_handle_android.cc32 const base::UnguessableToken& guid) in SharedMemoryHandle()
43 handle.guid_ = UnguessableToken::Create(); in ImportHandle()
/external/libchrome/base/trace_event/
Dprocess_memory_dump.h32 class UnguessableToken; variable
194 const UnguessableToken& shared_memory_guid,
198 const UnguessableToken& shared_memory_guid,
242 const UnguessableToken& process_token() const { return process_token_; } in process_token()
243 void set_process_token_for_testing(UnguessableToken token) { in set_process_token_for_testing()
254 const UnguessableToken& shared_memory_guid,
260 UnguessableToken process_token_;
Dprocess_memory_dump.cc52 UnguessableToken GetTokenForCurrentProcess() { in GetTokenForCurrentProcess()
53 static UnguessableToken instance = UnguessableToken::Create(); in GetTokenForCurrentProcess()
425 const UnguessableToken& shared_memory_guid, in CreateSharedMemoryOwnershipEdge()
434 const UnguessableToken& shared_memory_guid, in CreateWeakSharedMemoryOwnershipEdge()
442 const UnguessableToken& shared_memory_guid, in CreateSharedMemoryOwnershipEdgeInternal()
/external/libchrome/mojo/public/mojom/base/
Dunguessable_token.mojom7 // Corresponds to |base::UnguessableToken| in base/unguessable_token.h
8 struct UnguessableToken {

123