Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(370)

Side by Side Diff: chrome/browser/ui/browser_browsertest.cc

Issue 93603006: Move Translate-related files to components/translate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/translate/translate_ui_delegate.cc ('k') | chrome/browser/ui/browser_window.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 #include "chrome/browser/ui/browser_ui_prefs.h" 43 #include "chrome/browser/ui/browser_ui_prefs.h"
44 #include "chrome/browser/ui/browser_window.h" 44 #include "chrome/browser/ui/browser_window.h"
45 #include "chrome/browser/ui/extensions/application_launch.h" 45 #include "chrome/browser/ui/extensions/application_launch.h"
46 #include "chrome/browser/ui/host_desktop.h" 46 #include "chrome/browser/ui/host_desktop.h"
47 #include "chrome/browser/ui/startup/startup_browser_creator.h" 47 #include "chrome/browser/ui/startup/startup_browser_creator.h"
48 #include "chrome/browser/ui/startup/startup_browser_creator_impl.h" 48 #include "chrome/browser/ui/startup/startup_browser_creator_impl.h"
49 #include "chrome/browser/ui/tabs/pinned_tab_codec.h" 49 #include "chrome/browser/ui/tabs/pinned_tab_codec.h"
50 #include "chrome/browser/ui/tabs/tab_strip_model.h" 50 #include "chrome/browser/ui/tabs/tab_strip_model.h"
51 #include "chrome/common/chrome_switches.h" 51 #include "chrome/common/chrome_switches.h"
52 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h" 52 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h"
53 #include "chrome/common/translate/language_detection_details.h"
54 #include "chrome/common/url_constants.h" 53 #include "chrome/common/url_constants.h"
55 #include "chrome/test/base/in_process_browser_test.h" 54 #include "chrome/test/base/in_process_browser_test.h"
56 #include "chrome/test/base/test_switches.h" 55 #include "chrome/test/base/test_switches.h"
57 #include "chrome/test/base/ui_test_utils.h" 56 #include "chrome/test/base/ui_test_utils.h"
57 #include "components/translate/core/common/language_detection_details.h"
58 #include "content/public/browser/favicon_status.h" 58 #include "content/public/browser/favicon_status.h"
59 #include "content/public/browser/host_zoom_map.h" 59 #include "content/public/browser/host_zoom_map.h"
60 #include "content/public/browser/interstitial_page.h" 60 #include "content/public/browser/interstitial_page.h"
61 #include "content/public/browser/interstitial_page_delegate.h" 61 #include "content/public/browser/interstitial_page_delegate.h"
62 #include "content/public/browser/navigation_entry.h" 62 #include "content/public/browser/navigation_entry.h"
63 #include "content/public/browser/notification_service.h" 63 #include "content/public/browser/notification_service.h"
64 #include "content/public/browser/render_process_host.h" 64 #include "content/public/browser/render_process_host.h"
65 #include "content/public/browser/render_view_host.h" 65 #include "content/public/browser/render_view_host.h"
66 #include "content/public/browser/render_widget_host_view.h" 66 #include "content/public/browser/render_widget_host_view.h"
67 #include "content/public/browser/resource_context.h" 67 #include "content/public/browser/resource_context.h"
(...skipping 2488 matching lines...) Expand 10 before | Expand all | Expand 10 after
2556 exp_commit_size.Enlarge(wcv_resize_insets.width(), 2556 exp_commit_size.Enlarge(wcv_resize_insets.width(),
2557 wcv_resize_insets.height() + height_inset); 2557 wcv_resize_insets.height() + height_inset);
2558 EXPECT_EQ(exp_commit_size, rwhv_commit_size2); 2558 EXPECT_EQ(exp_commit_size, rwhv_commit_size2);
2559 EXPECT_EQ(exp_commit_size, wcv_commit_size2); 2559 EXPECT_EQ(exp_commit_size, wcv_commit_size2);
2560 // Sizes of RenderWidgetHostView and WebContentsView before and after 2560 // Sizes of RenderWidgetHostView and WebContentsView before and after
2561 // WebContentsDelegate::DidNavigateMainFramePostCommit should be the same. 2561 // WebContentsDelegate::DidNavigateMainFramePostCommit should be the same.
2562 EXPECT_EQ(rwhv_commit_size2, 2562 EXPECT_EQ(rwhv_commit_size2,
2563 web_contents->GetRenderWidgetHostView()->GetViewBounds().size()); 2563 web_contents->GetRenderWidgetHostView()->GetViewBounds().size());
2564 EXPECT_EQ(wcv_commit_size2, web_contents->GetView()->GetContainerSize()); 2564 EXPECT_EQ(wcv_commit_size2, web_contents->GetView()->GetContainerSize());
2565 } 2565 }
OLDNEW
« no previous file with comments | « chrome/browser/translate/translate_ui_delegate.cc ('k') | chrome/browser/ui/browser_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698