| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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 "chrome/browser/chromeos/app_mode/kiosk_app_update_service.h" | 5 #include "chrome/browser/chromeos/app_mode/kiosk_app_update_service.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/files/file_util.h" | 13 #include "base/files/file_util.h" |
| 14 #include "base/files/scoped_temp_dir.h" | 14 #include "base/files/scoped_temp_dir.h" |
| 15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 16 #include "base/path_service.h" | |
| 17 #include "base/prefs/pref_service.h" | 16 #include "base/prefs/pref_service.h" |
| 18 #include "base/strings/string_number_conversions.h" | 17 #include "base/strings/string_number_conversions.h" |
| 19 #include "base/test/scoped_path_override.h" | 18 #include "base/test/scoped_path_override.h" |
| 20 #include "base/threading/sequenced_worker_pool.h" | 19 #include "base/threading/sequenced_worker_pool.h" |
| 21 #include "base/time/time.h" | 20 #include "base/time/time.h" |
| 22 #include "chrome/browser/apps/app_browsertest_util.h" | 21 #include "chrome/browser/apps/app_browsertest_util.h" |
| 23 #include "chrome/browser/browser_process.h" | 22 #include "chrome/browser/browser_process.h" |
| 24 #include "chrome/browser/browser_process_platform_part.h" | 23 #include "chrome/browser/browser_process_platform_part.h" |
| 25 #include "chrome/browser/chromeos/system/automatic_reboot_manager.h" | 24 #include "chrome/browser/chromeos/system/automatic_reboot_manager.h" |
| 26 #include "chrome/browser/profiles/profile.h" | 25 #include "chrome/browser/profiles/profile.h" |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 | 108 |
| 110 IN_PROC_BROWSER_TEST_F(KioskAppUpdateServiceTest, Periodic) { | 109 IN_PROC_BROWSER_TEST_F(KioskAppUpdateServiceTest, Periodic) { |
| 111 g_browser_process->local_state()->SetInteger( | 110 g_browser_process->local_state()->SetInteger( |
| 112 prefs::kUptimeLimit, base::TimeDelta::FromMinutes(30).InSeconds()); | 111 prefs::kUptimeLimit, base::TimeDelta::FromMinutes(30).InSeconds()); |
| 113 | 112 |
| 114 ExtensionTestMessageListener listener("periodic", false); | 113 ExtensionTestMessageListener listener("periodic", false); |
| 115 listener.WaitUntilSatisfied(); | 114 listener.WaitUntilSatisfied(); |
| 116 } | 115 } |
| 117 | 116 |
| 118 } // namespace chromeos | 117 } // namespace chromeos |
| OLD | NEW |