| OLD | NEW |
| 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 | 5 |
| 6 #include <set> | 6 #include <set> |
| 7 | 7 |
| 8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 #include "chrome/app/chrome_command_ids.h" | 9 #include "chrome/app/chrome_command_ids.h" |
| 10 #include "chrome/browser/prefs/pref_service.h" | 10 #include "chrome/browser/prefs/pref_service.h" |
| (...skipping 1210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 } |
| OLD | NEW |