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

Unified Diff: content/browser/speech/google_streaming_remote_engine_unittest.cc

Issue 820673004: json_schema_compiler: Use std::vector<char> for binary values. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@simplify_json_schema
Patch Set: Fix merge error. Created 5 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/speech/google_streaming_remote_engine_unittest.cc
diff --git a/content/browser/speech/google_streaming_remote_engine_unittest.cc b/content/browser/speech/google_streaming_remote_engine_unittest.cc
index 0f17fa054f5509e54d032fb926945894c964eb20..c3d7ce5c4e1be68ae49b3a3c6150b8b486a5a15b 100644
--- a/content/browser/speech/google_streaming_remote_engine_unittest.cc
+++ b/content/browser/speech/google_streaming_remote_engine_unittest.cc
@@ -333,12 +333,12 @@ TEST_F(GoogleStreamingRemoteEngineTest, Stability) {
}
TEST_F(GoogleStreamingRemoteEngineTest, SendPreamble) {
- const int kPreambleLength = 100;
+ const size_t kPreambleLength = 100;
scoped_refptr<SpeechRecognitionSessionPreamble> preamble =
new SpeechRecognitionSessionPreamble();
preamble->sample_rate = 16000;
preamble->sample_depth = 2;
- preamble->sample_data = std::string(kPreambleLength, 0);
+ preamble->sample_data.assign(kPreambleLength, 0);
SpeechRecognitionEngine::Config config;
config.auth_token = "foo";
config.auth_scope = "bar";
« no previous file with comments | « chromeos/dbus/shill_third_party_vpn_observer.h ('k') | content/public/browser/speech_recognition_session_preamble.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698