Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(336)

Side by Side Diff: ash/system/chromeos/session/logout_confirmation_controller_unittest.cc

Issue 1966903002: Fix include path for moved thread_task_runner_handle.h header in ash/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a1_move_task_runner_handle
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/system/chromeos/session/logout_confirmation_controller.h" 5 #include "ash/system/chromeos/session/logout_confirmation_controller.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/test/test_mock_time_task_runner.h" 10 #include "base/test/test_mock_time_task_runner.h"
11 #include "base/thread_task_runner_handle.h" 11 #include "base/threading/thread_task_runner_handle.h"
12 #include "base/time/tick_clock.h" 12 #include "base/time/tick_clock.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 14
15 namespace ash { 15 namespace ash {
16 16
17 class LogoutConfirmationControllerTest : public testing::Test { 17 class LogoutConfirmationControllerTest : public testing::Test {
18 protected: 18 protected:
19 LogoutConfirmationControllerTest(); 19 LogoutConfirmationControllerTest();
20 ~LogoutConfirmationControllerTest() override; 20 ~LogoutConfirmationControllerTest() override;
21 21
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 controller_.ConfirmLogout(runner_->NowTicks() + 146 controller_.ConfirmLogout(runner_->NowTicks() +
147 base::TimeDelta::FromSeconds(10)); 147 base::TimeDelta::FromSeconds(10));
148 EXPECT_FALSE(log_out_called_); 148 EXPECT_FALSE(log_out_called_);
149 runner_->FastForwardBy(base::TimeDelta::FromSeconds(9)); 149 runner_->FastForwardBy(base::TimeDelta::FromSeconds(9));
150 EXPECT_FALSE(log_out_called_); 150 EXPECT_FALSE(log_out_called_);
151 runner_->FastForwardBy(base::TimeDelta::FromSeconds(2)); 151 runner_->FastForwardBy(base::TimeDelta::FromSeconds(2));
152 EXPECT_TRUE(log_out_called_); 152 EXPECT_TRUE(log_out_called_);
153 } 153 }
154 154
155 } // namespace ash 155 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/chromeos/network/network_state_list_detailed_view.cc ('k') | ash/system/toast/toast_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698