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

Side by Side Diff: chrome/browser/translate/translate_manager_unittest.cc

Issue 6575009: Move files out of chrome\browser\renderer_host\test alongside their source. ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/renderer_host/test/test_render_view_host.h"
6 5
7 #include <set> 6 #include <set>
8 7
9 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
10 #include "chrome/app/chrome_command_ids.h" 9 #include "chrome/app/chrome_command_ids.h"
11 #include "chrome/browser/prefs/pref_service.h" 10 #include "chrome/browser/prefs/pref_service.h"
12 #include "chrome/browser/prefs/pref_change_registrar.h" 11 #include "chrome/browser/prefs/pref_change_registrar.h"
13 #include "chrome/browser/renderer_host/mock_render_process_host.h"
14 #include "chrome/browser/tab_contents/navigation_controller.h"
15 #include "chrome/browser/tab_contents/render_view_context_menu.h" 12 #include "chrome/browser/tab_contents/render_view_context_menu.h"
16 #include "chrome/browser/tab_contents/test_tab_contents.h"
17 #include "chrome/browser/translate/translate_infobar_delegate.h" 13 #include "chrome/browser/translate/translate_infobar_delegate.h"
18 #include "chrome/browser/translate/translate_manager.h" 14 #include "chrome/browser/translate/translate_manager.h"
19 #include "chrome/browser/translate/translate_prefs.h" 15 #include "chrome/browser/translate/translate_prefs.h"
20 #include "chrome/common/notification_details.h" 16 #include "chrome/common/notification_details.h"
21 #include "chrome/common/notification_observer_mock.h" 17 #include "chrome/common/notification_observer_mock.h"
22 #include "chrome/common/notification_registrar.h" 18 #include "chrome/common/notification_registrar.h"
23 #include "chrome/common/notification_type.h" 19 #include "chrome/common/notification_type.h"
24 #include "chrome/common/pref_names.h" 20 #include "chrome/common/pref_names.h"
25 #include "chrome/common/render_messages.h" 21 #include "chrome/common/render_messages.h"
26 #include "chrome/common/net/test_url_fetcher_factory.h" 22 #include "chrome/common/net/test_url_fetcher_factory.h"
27 #include "chrome/test/testing_browser_process.h" 23 #include "chrome/test/testing_browser_process.h"
28 #include "chrome/test/testing_profile.h" 24 #include "chrome/test/testing_profile.h"
25 #include "content/browser/renderer_host/mock_render_process_host.h"
26 #include "content/browser/renderer_host/test_render_view_host.h"
27 #include "content/browser/tab_contents/navigation_controller.h"
28 #include "content/browser/tab_contents/test_tab_contents.h"
29 #include "grit/generated_resources.h" 29 #include "grit/generated_resources.h"
30 #include "ipc/ipc_test_sink.h" 30 #include "ipc/ipc_test_sink.h"
31 #include "testing/gmock/include/gmock/gmock.h" 31 #include "testing/gmock/include/gmock/gmock.h"
32 #include "third_party/cld/languages/public/languages.h" 32 #include "third_party/cld/languages/public/languages.h"
33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebContextMenuData.h" 33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebContextMenuData.h"
34 34
35 using testing::_; 35 using testing::_;
36 using testing::Pointee; 36 using testing::Pointee;
37 using testing::Property; 37 using testing::Property;
38 using WebKit::WebContextMenuData; 38 using WebKit::WebContextMenuData;
(...skipping 1182 matching lines...) Expand 10 before | Expand all | Expand 10 after
1221 NULL); 1221 NULL);
1222 // Now simulate the URL fetch. 1222 // Now simulate the URL fetch.
1223 SimulateURLFetch(true); 1223 SimulateURLFetch(true);
1224 // Now the message should have been sent. 1224 // Now the message should have been sent.
1225 int page_id = 0; 1225 int page_id = 0;
1226 std::string original_lang, target_lang; 1226 std::string original_lang, target_lang;
1227 EXPECT_TRUE(GetTranslateMessage(&page_id, &original_lang, &target_lang)); 1227 EXPECT_TRUE(GetTranslateMessage(&page_id, &original_lang, &target_lang));
1228 EXPECT_EQ("es", original_lang); 1228 EXPECT_EQ("es", original_lang);
1229 EXPECT_EQ("en", target_lang); 1229 EXPECT_EQ("en", target_lang);
1230 } 1230 }
OLDNEW
« no previous file with comments | « chrome/browser/tabs/tab_strip_model_unittest.cc ('k') | chrome/browser/ui/cocoa/bug_report_window_controller_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698