| 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 // This entire test suite relies on the translate infobar which has been removed | 5 // This entire test suite relies on the translate infobar which has been removed |
| 6 // from Aura. The file should be ported to use the bubble. | 6 // from Aura. The file should be ported to use the bubble. |
| 7 #if !defined(USE_AURA) | 7 #if !defined(USE_AURA) |
| 8 | 8 |
| 9 #include <stddef.h> |
| 10 |
| 9 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 10 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/macros.h" |
| 11 #include "base/path_service.h" | 14 #include "base/path_service.h" |
| 12 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
| 13 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
| 14 #include "chrome/browser/chrome_notification_types.h" | 17 #include "chrome/browser/chrome_notification_types.h" |
| 15 #include "chrome/browser/infobars/infobar_service.h" | 18 #include "chrome/browser/infobars/infobar_service.h" |
| 16 #include "chrome/browser/translate/translate_service.h" | 19 #include "chrome/browser/translate/translate_service.h" |
| 17 #include "chrome/browser/ui/browser.h" | 20 #include "chrome/browser/ui/browser.h" |
| 18 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 21 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 19 #include "chrome/common/chrome_paths.h" | 22 #include "chrome/common/chrome_paths.h" |
| 20 #include "chrome/test/base/in_process_browser_test.h" | 23 #include "chrome/test/base/in_process_browser_test.h" |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 IN_PROC_BROWSER_TEST_F(TranslateBrowserTest, UpdateLocation) { | 288 IN_PROC_BROWSER_TEST_F(TranslateBrowserTest, UpdateLocation) { |
| 286 ASSERT_NO_FATAL_FAILURE(CheckForTranslateUI( | 289 ASSERT_NO_FATAL_FAILURE(CheckForTranslateUI( |
| 287 kUpdateLocationTestPath, false)); | 290 kUpdateLocationTestPath, false)); |
| 288 } | 291 } |
| 289 | 292 |
| 290 IN_PROC_BROWSER_TEST_F(TranslateBrowserTest, UpdateLocationAtOnload) { | 293 IN_PROC_BROWSER_TEST_F(TranslateBrowserTest, UpdateLocationAtOnload) { |
| 291 ASSERT_NO_FATAL_FAILURE(CheckForTranslateUI( | 294 ASSERT_NO_FATAL_FAILURE(CheckForTranslateUI( |
| 292 kUpdateLocationAtOnloadTestPath, false)); | 295 kUpdateLocationAtOnloadTestPath, false)); |
| 293 } | 296 } |
| 294 #endif // !defined(USE_AURA) | 297 #endif // !defined(USE_AURA) |
| OLD | NEW |