| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2012 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. | |
| 4 | |
| 5 #include "base/command_line.h" | |
| 6 #include "chrome/browser/extensions/extension_apitest.h" | |
| 7 #include "chrome/test/base/test_switches.h" | |
| 8 | |
| 9 // Flaky on ChromeOS, times out on OSX Debug http://crbug.com/251199 | |
| 10 #if defined(OS_CHROMEOS) || (defined(OS_MACOSX) && !defined(NDEBUG)) | |
| 11 #define MAYBE_SessionRestoreApis DISABLED_SessionRestoreApis | |
| 12 #else | |
| 13 #define MAYBE_SessionRestoreApis SessionRestoreApis | |
| 14 #endif | |
| 15 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, MAYBE_SessionRestoreApis) { | |
| 16 #if defined(OS_WIN) && defined(USE_ASH) | |
| 17 // Disable this test in Metro+Ash for now (http://crbug.com/262796). | |
| 18 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kAshBrowserTests)) | |
| 19 return; | |
| 20 #endif | |
| 21 | |
| 22 ASSERT_TRUE(RunExtensionSubtest("session_restore", | |
| 23 "session_restore.html")) << message_; | |
| 24 } | |
| OLD | NEW |