1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "base/sequence_checker.h"
9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h"
11 #include "base/test/null_task_runner.h"
12 #include "testing/gtest/include/gtest/gtest.h"
18 // Call various methods of SequenceChecker to make sure nothing blows
19 // up in either debug or release mode.
20 TEST(SequenceCheckerTest
, Basic
) {
21 SequenceChecker
sequence_checker(new NullTaskRunner());
22 sequence_checker
.CalledOnValidSequence();
23 sequence_checker
.ChangeSequence(NULL
);
24 sequence_checker
.CalledOnValidSequence();