Proper positioning of new dialog style print preview.
[chromium-blink-merge.git] / base / sequence_checker_unittest.cc
blob4fc3027cf820f9563cd25e2c916fe0f65277c2c6
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"
7 #include <cstddef>
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"
14 namespace base {
16 namespace {
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();
27 } // namespace
29 } // namespace base