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

Unified Diff: chrome/test/pyautolib/argc_argv.i

Issue 222873002: Remove pyauto tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync Created 6 years, 9 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
« no previous file with comments | « chrome/test/pyautolib/PYAUTO_TESTS ('k') | chrome/test/pyautolib/asan_stub.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/pyautolib/argc_argv.i
===================================================================
--- chrome/test/pyautolib/argc_argv.i (revision 261231)
+++ chrome/test/pyautolib/argc_argv.i (working copy)
@@ -1,30 +0,0 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-//
-// Make functions using (int argc, char** argv) usable as (sys.argv) from python
-
-%typemap(in) (int argc, char **argv) {
- int i;
- if (!PyList_Check($input)) {
- PyErr_SetString(PyExc_ValueError, "Expecting a list");
- return NULL;
- }
- $1 = PyList_Size($input);
- $2 = (char **) malloc(($1+1)*sizeof(char *));
- for (i = 0; i < $1; i++) {
- PyObject *s = PyList_GetItem($input,i);
- if (!PyString_Check(s)) {
- free($2);
- PyErr_SetString(PyExc_ValueError, "List items must be strings");
- return NULL;
- }
- $2[i] = PyString_AsString(s);
- }
- $2[i] = 0;
-}
-
-%typemap(freearg) (int argc, char **argv) {
- if ($2) free($2);
-}
-
« no previous file with comments | « chrome/test/pyautolib/PYAUTO_TESTS ('k') | chrome/test/pyautolib/asan_stub.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698