Home
last modified time | relevance | path

Searched refs:SequenceToken (Results 1 – 12 of 12) sorted by relevance

/external/libchrome/base/
Dsequence_token_unittest.cc12 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 …]
Dsequence_token.cc20 LazyInstance<ThreadLocalPointer<const SequenceToken>>::Leaky
28 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 …]
Dsequence_token.h15 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() function
103 ScopedSetSequenceTokenForCurrentThread(const SequenceToken& sequence_token);
[all …]
Dsequence_checker_unittest.cc58 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()
Dsequence_checker_impl.cc16 Core() : sequence_token_(SequenceToken::GetForCurrentThread()) {} in Core()
22 return sequence_token_ == SequenceToken::GetForCurrentThread(); in CalledOnValidSequence()
30 SequenceToken sequence_token_;
/external/libchrome/base/threading/
Dthread_checker_unittest.cc64 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()
Dthread_checker_impl.cc32 (sequence_token_ != SequenceToken::GetForCurrentThread() || in CalledOnValidThread()
44 sequence_token_ = SequenceToken(); in DetachFromThread()
54 sequence_token_ = SequenceToken::GetForCurrentThread(); in EnsureAssigned()
Dthread_checker_impl.h57 mutable SequenceToken sequence_token_;
/external/libchrome/base/task_scheduler/
Dsequence.h71 const SequenceToken& token() const { return token_; } in token()
81 const SequenceToken token_ = SequenceToken::Create();
Dtask_tracker.cc42 const SequenceToken& sequence_token) in TaskTracingInfo()
53 const SequenceToken sequence_token_;
482 const SequenceToken& sequence_token = sequence->token(); in RunOrSkipTask()
Dtask_tracker_unittest.cc866 void ExpectSequenceToken(SequenceToken sequence_token) { in ExpectSequenceToken()
867 EXPECT_EQ(sequence_token, SequenceToken::GetForCurrentThread()); in ExpectSequenceToken()
877 const SequenceToken sequence_token = sequence->token(); in TEST_F()
884 EXPECT_FALSE(SequenceToken::GetForCurrentThread().IsValid()); in TEST_F()
889 EXPECT_FALSE(SequenceToken::GetForCurrentThread().IsValid()); in TEST_F()
Dscheduler_worker_pool.cc116 return sequence_->token() == SequenceToken::GetForCurrentThread(); in RunsTasksInCurrentSequence()