Searched refs:SequenceToken (Results 1 – 10 of 10) sorted by relevance
12 EXPECT_FALSE(SequenceToken().IsValid()); in TEST()13 EXPECT_TRUE(SequenceToken::Create().IsValid()); in TEST()17 const SequenceToken invalid_a; in TEST()18 const SequenceToken invalid_b; in TEST()19 const SequenceToken valid_a = SequenceToken::Create(); in TEST()20 const SequenceToken valid_b = SequenceToken::Create(); in TEST()34 const SequenceToken invalid_a; in TEST()35 const SequenceToken invalid_b; in TEST()36 const SequenceToken valid_a = SequenceToken::Create(); in TEST()37 const SequenceToken valid_b = SequenceToken::Create(); in TEST()[all …]
20 LazyInstance<ThreadLocalPointer<const SequenceToken>>::Leaky28 bool SequenceToken::operator==(const SequenceToken& other) const { in operator ==()32 bool SequenceToken::operator!=(const SequenceToken& other) const { in operator !=()36 bool SequenceToken::IsValid() const { in IsValid()40 int SequenceToken::ToInternalValue() const { in ToInternalValue()44 SequenceToken SequenceToken::Create() { in Create()45 return SequenceToken(g_sequence_token_generator.GetNext()); in Create()48 SequenceToken SequenceToken::GetForCurrentThread() { in GetForCurrentThread()49 const SequenceToken* current_sequence_token = in GetForCurrentThread()51 return current_sequence_token ? *current_sequence_token : SequenceToken(); in GetForCurrentThread()[all …]
15 class BASE_EXPORT SequenceToken {18 SequenceToken() = default;21 SequenceToken(const SequenceToken& other) = default;22 SequenceToken& operator=(const SequenceToken& other) = default;26 bool operator==(const SequenceToken& other) const;27 bool operator!=(const SequenceToken& other) const;38 static SequenceToken Create();43 static SequenceToken GetForCurrentThread();46 explicit SequenceToken(int token) : token_(token) {} in SequenceToken() function103 ScopedSetSequenceTokenForCurrentThread(const SequenceToken& sequence_token);[all …]
58 SequenceToken sequence_token) { in ExpectCalledOnValidSequenceWithSequenceToken()78 scoped_set_sequence_token_for_current_thread(SequenceToken::Create()); in TEST()90 const SequenceToken sequence_token(SequenceToken::Create()); in TEST()106 scoped_set_sequence_token_for_current_thread(SequenceToken::Create()); in TEST()113 scoped_set_sequence_token_for_current_thread(SequenceToken::Create()); in TEST()126 scoped_set_sequence_token_for_current_thread(SequenceToken::Create()); in TEST()136 scoped_set_sequence_token_for_current_thread(SequenceToken::Create()); in TEST()155 SequenceToken::Create()); in TEST()
16 Core() : sequence_token_(SequenceToken::GetForCurrentThread()) {} in Core()22 return sequence_token_ == SequenceToken::GetForCurrentThread(); in CalledOnValidSequence()30 SequenceToken sequence_token_;
64 SequenceToken sequence_token) { in ExpectNotCalledOnValidThreadWithSequenceTokenAndThreadTaskRunnerHandle()85 const SequenceToken sequence_token = SequenceToken::Create(); in TEST()103 scoped_set_sequence_token_for_current_thread(SequenceToken::Create()); in TEST()114 scoped_set_sequence_token_for_current_thread(SequenceToken::Create()); in TEST()120 scoped_set_sequence_token_for_current_thread(SequenceToken::Create()); in TEST()134 const SequenceToken sequence_token(SequenceToken::Create()); in TEST()154 scoped_set_sequence_token_for_current_thread(SequenceToken::Create()); in TEST()161 scoped_set_sequence_token_for_current_thread(SequenceToken::Create()); in TEST()185 scoped_set_sequence_token_for_current_thread(SequenceToken::Create()); in TEST()
32 (sequence_token_ != SequenceToken::GetForCurrentThread() || in CalledOnValidThread()44 sequence_token_ = SequenceToken(); in DetachFromThread()54 sequence_token_ = SequenceToken::GetForCurrentThread(); in EnsureAssigned()
57 mutable SequenceToken sequence_token_;
71 const SequenceToken& token() const { return token_; } in token()81 const SequenceToken token_ = SequenceToken::Create();
116 return sequence_->token() == SequenceToken::GetForCurrentThread(); in RunsTasksInCurrentSequence()