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

Side by Side Diff: ppapi/tests/test_char_set.cc

Issue 8879009: In ppapi/tests: |... const*| -> |const ...*| (for consistency). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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
« no previous file with comments | « ppapi/tests/test_buffer.cc ('k') | ppapi/tests/test_crypto.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "ppapi/tests/test_char_set.h" 5 #include "ppapi/tests/test_char_set.h"
6 6
7 #include "ppapi/c/dev/ppb_char_set_dev.h" 7 #include "ppapi/c/dev/ppb_char_set_dev.h"
8 #include "ppapi/cpp/dev/memory_dev.h" 8 #include "ppapi/cpp/dev/memory_dev.h"
9 #include "ppapi/cpp/module.h" 9 #include "ppapi/cpp/module.h"
10 #include "ppapi/tests/testing_instance.h" 10 #include "ppapi/tests/testing_instance.h"
11 11
12 REGISTER_TEST_CASE(CharSet); 12 REGISTER_TEST_CASE(CharSet);
13 13
14 TestCharSet::TestCharSet(TestingInstance* instance) 14 TestCharSet::TestCharSet(TestingInstance* instance)
15 : TestCase(instance), 15 : TestCase(instance),
16 char_set_interface_(NULL) { 16 char_set_interface_(NULL) {
17 } 17 }
18 18
19 bool TestCharSet::Init() { 19 bool TestCharSet::Init() {
20 char_set_interface_ = static_cast<PPB_CharSet_Dev const*>( 20 char_set_interface_ = static_cast<const PPB_CharSet_Dev*>(
21 pp::Module::Get()->GetBrowserInterface(PPB_CHAR_SET_DEV_INTERFACE)); 21 pp::Module::Get()->GetBrowserInterface(PPB_CHAR_SET_DEV_INTERFACE));
22 return !!char_set_interface_; 22 return !!char_set_interface_;
23 } 23 }
24 24
25 void TestCharSet::RunTests(const std::string& filter) { 25 void TestCharSet::RunTests(const std::string& filter) {
26 RUN_TEST(UTF16ToCharSet, filter); 26 RUN_TEST(UTF16ToCharSet, filter);
27 RUN_TEST(CharSetToUTF16, filter); 27 RUN_TEST(CharSetToUTF16, filter);
28 RUN_TEST(GetDefaultCharSet, filter); 28 RUN_TEST(GetDefaultCharSet, filter);
29 } 29 }
30 30
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 189
190 std::vector<uint16_t> result_vector; 190 std::vector<uint16_t> result_vector;
191 if (!result) 191 if (!result)
192 return result_vector; 192 return result_vector;
193 193
194 result_vector.assign(result, &result[result_len]); 194 result_vector.assign(result, &result[result_len]);
195 pp::Memory_Dev memory; 195 pp::Memory_Dev memory;
196 memory.MemFree(result); 196 memory.MemFree(result);
197 return result_vector; 197 return result_vector;
198 } 198 }
OLDNEW
« no previous file with comments | « ppapi/tests/test_buffer.cc ('k') | ppapi/tests/test_crypto.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698