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

Side by Side Diff: ppapi/native_client/src/trusted/plugin/string_encoding_test.cc

Issue 7778046: Update Native Client Authors to be Chromium Authors for the code moved from the (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 /* 1 /*
2 * Copyright 2010 The Native Client Authors. All rights reserved. 2 * Copyright 2010 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can 3 * Use of this source code is governed by a BSD-style license that can
4 * be found in the LICENSE file. 4 * be found in the LICENSE file.
5 */ 5 */
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 #include "native_client/src/shared/platform/nacl_check.h" 9 #include "native_client/src/shared/platform/nacl_check.h"
10 #include "native_client/src/trusted/plugin/string_encoding.h" 10 #include "native_client/src/trusted/plugin/string_encoding.h"
11 11
12 12
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 CHECK(!plugin::ByteStringFromUTF8(input, strlen(input), 46 CHECK(!plugin::ByteStringFromUTF8(input, strlen(input),
47 &output, &output_size)); 47 &output, &output_size));
48 // Over long encoding 48 // Over long encoding
49 // This is a non-canonical encoding for \x00 49 // This is a non-canonical encoding for \x00
50 input = "\xc0\x80"; 50 input = "\xc0\x80";
51 CHECK(!plugin::ByteStringFromUTF8(input, strlen(input), 51 CHECK(!plugin::ByteStringFromUTF8(input, strlen(input),
52 &output, &output_size)); 52 &output, &output_size));
53 53
54 return 0; 54 return 0;
55 } 55 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698