| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
| 13 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
| 14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
| 15 #include "build/build_config.h" |
| 15 #include "chrome/app/chrome_command_ids.h" | 16 #include "chrome/app/chrome_command_ids.h" |
| 16 #include "chrome/browser/browser_process.h" | 17 #include "chrome/browser/browser_process.h" |
| 17 #include "chrome/browser/chrome_notification_types.h" | 18 #include "chrome/browser/chrome_notification_types.h" |
| 18 #include "chrome/browser/profiles/profile_window.h" | 19 #include "chrome/browser/profiles/profile_window.h" |
| 19 #include "chrome/browser/renderer_context_menu/render_view_context_menu.h" | 20 #include "chrome/browser/renderer_context_menu/render_view_context_menu.h" |
| 20 #include "chrome/browser/renderer_context_menu/render_view_context_menu_browsert
est_util.h" | 21 #include "chrome/browser/renderer_context_menu/render_view_context_menu_browsert
est_util.h" |
| 21 #include "chrome/browser/renderer_context_menu/render_view_context_menu_test_uti
l.h" | 22 #include "chrome/browser/renderer_context_menu/render_view_context_menu_test_uti
l.h" |
| 22 #include "chrome/browser/search_engines/template_url_service_factory.h" | 23 #include "chrome/browser/search_engines/template_url_service_factory.h" |
| 23 #include "chrome/browser/ui/browser.h" | 24 #include "chrome/browser/ui/browser.h" |
| 24 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 25 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| (...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 795 IN_PROC_BROWSER_TEST_F(LoadImageBrowserTest, LoadImage) { | 796 IN_PROC_BROWSER_TEST_F(LoadImageBrowserTest, LoadImage) { |
| 796 static const char kValidImage[] = "/load_image/image.png"; | 797 static const char kValidImage[] = "/load_image/image.png"; |
| 797 SetupAndLoadImagePage(kValidImage); | 798 SetupAndLoadImagePage(kValidImage); |
| 798 AddLoadImageInterceptor(kValidImage); | 799 AddLoadImageInterceptor(kValidImage); |
| 799 AttemptLoadImage(); | 800 AttemptLoadImage(); |
| 800 interceptor_->WaitForRequests(1); | 801 interceptor_->WaitForRequests(1); |
| 801 EXPECT_EQ(1, interceptor_->num_requests()); | 802 EXPECT_EQ(1, interceptor_->num_requests()); |
| 802 } | 803 } |
| 803 | 804 |
| 804 } // namespace | 805 } // namespace |
| OLD | NEW |