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

Side by Side Diff: mojo/edk/test/test_support_impl.cc

Issue 1350023003: Add a Mojo EDK for Chrome that uses one OS pipe per message pipe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: convert remaining MP tests and simplify RawChannel destruction Created 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "mojo/edk/test/test_support_impl.h" 5 #include "mojo/edk/test/test_support_impl.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 #include <string.h> 8 #include <string.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 // |names.size() + 1| for null terminator. 73 // |names.size() + 1| for null terminator.
74 char** rv = static_cast<char**>(calloc(names.size() + 1, sizeof(char*))); 74 char** rv = static_cast<char**>(calloc(names.size() + 1, sizeof(char*)));
75 for (size_t i = 0; i < names.size(); ++i) 75 for (size_t i = 0; i < names.size(); ++i)
76 rv[i] = base::strdup(names[i].c_str()); 76 rv[i] = base::strdup(names[i].c_str());
77 return rv; 77 return rv;
78 } 78 }
79 79
80 } // namespace test 80 } // namespace test
81 } // namespace mojo 81 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698