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

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

Issue 3129007: FBTF: Forward declare everything possible in testing_profile.h (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: argh mac problems now Created 10 years, 4 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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" 5 #include "chrome/browser/renderer_host/test/test_render_view_host.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/app/chrome_dll_resource.h" 8 #include "chrome/app/chrome_dll_resource.h"
9 #include "chrome/browser/pref_service.h"
9 #include "chrome/browser/renderer_host/mock_render_process_host.h" 10 #include "chrome/browser/renderer_host/mock_render_process_host.h"
10 #include "chrome/browser/tab_contents/render_view_context_menu.h" 11 #include "chrome/browser/tab_contents/render_view_context_menu.h"
11 #include "chrome/browser/translate/translate_infobar_delegate.h" 12 #include "chrome/browser/translate/translate_infobar_delegate.h"
12 #include "chrome/browser/translate/translate_manager.h" 13 #include "chrome/browser/translate/translate_manager.h"
13 #include "chrome/browser/translate/translate_prefs.h" 14 #include "chrome/browser/translate/translate_prefs.h"
14 #include "chrome/common/ipc_test_sink.h" 15 #include "chrome/common/ipc_test_sink.h"
15 #include "chrome/common/notification_details.h" 16 #include "chrome/common/notification_details.h"
16 #include "chrome/common/notification_observer_mock.h" 17 #include "chrome/common/notification_observer_mock.h"
17 #include "chrome/common/notification_registrar.h" 18 #include "chrome/common/notification_registrar.h"
18 #include "chrome/common/notification_service.h" 19 #include "chrome/common/notification_service.h"
(...skipping 1166 matching lines...) Expand 10 before | Expand all | Expand 10 after
1185 SimulateURLFetch(true); 1186 SimulateURLFetch(true);
1186 // Now the message should have been sent. 1187 // Now the message should have been sent.
1187 int page_id = 0; 1188 int page_id = 0;
1188 std::string original_lang, target_lang; 1189 std::string original_lang, target_lang;
1189 EXPECT_TRUE(GetTranslateMessage(&page_id, &original_lang, &target_lang)); 1190 EXPECT_TRUE(GetTranslateMessage(&page_id, &original_lang, &target_lang));
1190 EXPECT_EQ(1, page_id); 1191 EXPECT_EQ(1, page_id);
1191 EXPECT_EQ("es", original_lang); 1192 EXPECT_EQ("es", original_lang);
1192 EXPECT_EQ("en", target_lang); 1193 EXPECT_EQ("en", target_lang);
1193 } 1194 }
1194 1195
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698