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

Side by Side Diff: chrome/renderer/translate/translate_script_browsertest.cc

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "base/macros.h"
5 #include "base/strings/stringprintf.h" 6 #include "base/strings/stringprintf.h"
6 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
7 #include "chrome/test/base/chrome_render_view_test.h" 8 #include "chrome/test/base/chrome_render_view_test.h"
8 #include "components/translate/core/common/translate_errors.h" 9 #include "components/translate/core/common/translate_errors.h"
9 #include "grit/components_resources.h" 10 #include "grit/components_resources.h"
10 #include "third_party/WebKit/public/web/WebLocalFrame.h" 11 #include "third_party/WebKit/public/web/WebLocalFrame.h"
11 #include "third_party/WebKit/public/web/WebScriptSource.h" 12 #include "third_party/WebKit/public/web/WebScriptSource.h"
12 #include "ui/base/resource/resource_bundle.h" 13 #include "ui/base/resource/resource_bundle.h"
13 #include "v8/include/v8.h" 14 #include "v8/include/v8.h"
14 15
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 EXPECT_FALSE(GetError()); 228 EXPECT_FALSE(GetError());
228 EXPECT_EQ(translate::TranslateErrors::NONE, GetErrorCode()); 229 EXPECT_EQ(translate::TranslateErrors::NONE, GetErrorCode());
229 230
230 ExecuteScript(kTranslate); 231 ExecuteScript(kTranslate);
231 232
232 EXPECT_TRUE(GetError()); 233 EXPECT_TRUE(GetError());
233 EXPECT_EQ(translate::TranslateErrors::UNSUPPORTED_LANGUAGE, GetErrorCode()); 234 EXPECT_EQ(translate::TranslateErrors::UNSUPPORTED_LANGUAGE, GetErrorCode());
234 } 235 }
235 236
236 // TODO(toyoshim): Add test for onLoadJavaScript. 237 // TODO(toyoshim): Add test for onLoadJavaScript.
OLDNEW
« no previous file with comments | « chrome/renderer/translate/translate_helper_browsertest.cc ('k') | chrome/renderer/tts_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698