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 <memory> |
| 6 |
5 #include "base/bind.h" | 7 #include "base/bind.h" |
6 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
7 #include "base/memory/scoped_ptr.h" | |
8 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
9 #include "base/path_service.h" | 10 #include "base/path_service.h" |
10 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
11 #include "chrome/browser/chromeos/first_run/drive_first_run_controller.h" | 12 #include "chrome/browser/chromeos/first_run/drive_first_run_controller.h" |
12 #include "chrome/browser/extensions/crx_installer.h" | 13 #include "chrome/browser/extensions/crx_installer.h" |
13 #include "chrome/browser/extensions/extension_service.h" | 14 #include "chrome/browser/extensions/extension_service.h" |
14 #include "chrome/browser/extensions/extension_test_notification_observer.h" | 15 #include "chrome/browser/extensions/extension_test_notification_observer.h" |
15 #include "chrome/common/chrome_paths.h" | 16 #include "chrome/common/chrome_paths.h" |
16 #include "chrome/test/base/in_process_browser_test.h" | 17 #include "chrome/test/base/in_process_browser_test.h" |
17 #include "content/public/test/test_utils.h" | 18 #include "content/public/test/test_utils.h" |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 // Test that the controller times out instead of hanging forever. | 183 // Test that the controller times out instead of hanging forever. |
183 InstallApp(); | 184 InstallApp(); |
184 InitTestServer(kBadServerDirectory); | 185 InitTestServer(kBadServerDirectory); |
185 SetDelays(0, 0); | 186 SetDelays(0, 0); |
186 EnableOfflineMode(); | 187 EnableOfflineMode(); |
187 EXPECT_FALSE(WaitForFirstRunResult()); | 188 EXPECT_FALSE(WaitForFirstRunResult()); |
188 EXPECT_TRUE(timed_out()); | 189 EXPECT_TRUE(timed_out()); |
189 } | 190 } |
190 | 191 |
191 } // namespace chromeos | 192 } // namespace chromeos |
OLD | NEW |