Check USB device path access when prompting users to select a device.
[chromium-blink-merge.git] / chrome / browser / metrics / variations / variations_request_scheduler_unittest.cc
blob493275b5e0a5fb3917009685d70a7743e13ef066
1 // Copyright 2013 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 "chrome/browser/metrics/variations/variations_request_scheduler.h"
7 #include "base/bind.h"
8 #include "base/message_loop/message_loop.h"
9 #include "testing/gtest/include/gtest/gtest.h"
11 namespace chrome_variations {
13 namespace {
15 void DoNothing() {
18 } // namespace
20 TEST(VariationsRequestSchedulerTest, ScheduleFetchShortly) {
21 base::MessageLoopForUI message_loop_;
23 const base::Closure task = base::Bind(&DoNothing);
24 VariationsRequestScheduler scheduler(task);
25 EXPECT_FALSE(scheduler.one_shot_timer_.IsRunning());
27 scheduler.ScheduleFetchShortly();
28 EXPECT_TRUE(scheduler.one_shot_timer_.IsRunning());
31 } // namespace chrome_variations