OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2009-2010 The Chromium OS 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. |
| 4 |
| 5 #include <gtest/gtest.h> |
| 6 #include <unistd.h> |
| 7 |
| 8 #include <base/command_line.h> |
| 9 #include <base/logging.h> |
| 10 |
| 11 #include "power_manager/xidle.h" |
| 12 |
| 13 namespace chromeos { |
| 14 |
| 15 class XIdleTest : public ::testing::Test { }; |
| 16 |
| 17 TEST(XIdleTest, GetIdleTimeTest) { |
| 18 uint64 idleTime = kuint64max; |
| 19 chromeos::XIdle idle; |
| 20 if (idle.getIdleTime(&idleTime)) |
| 21 ASSERT_NE(idleTime, kuint64max); |
| 22 else |
| 23 ASSERT_EQ(idleTime, kuint64max); |
| 24 } |
| 25 |
| 26 } // namespace login_manager |
OLD | NEW |