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

Side by Side Diff: src/platform/power_manager/xidle_unittest.cc

Issue 652147: Add xidle library to power_manager for testing how long the user has been idle (Closed)
Patch Set: Fix issues pointed out by rtc Created 10 years, 9 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
« no previous file with comments | « src/platform/power_manager/xidle-example.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « src/platform/power_manager/xidle-example.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698