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

Side by Side Diff: tests/sel_main_chrome/sel_main_chrome_test.cc

Issue 135853021: NaCl: Expose NaClApp to embedding layer. (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Update test also Created 6 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 #include <fcntl.h> 7 #include <fcntl.h>
8 8
9 #if NACL_WINDOWS 9 #if NACL_WINDOWS
10 # include <io.h> 10 # include <io.h>
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 thread_args.channel = socketpair[1]; 128 thread_args.channel = socketpair[1];
129 129
130 // Check that NaClDescMakeCustomDesc() works when called before 130 // Check that NaClDescMakeCustomDesc() works when called before
131 // NaClChromeMainStart(). 131 // NaClChromeMainStart().
132 args->initial_ipc_desc = MakeExampleDesc(); 132 args->initial_ipc_desc = MakeExampleDesc();
133 133
134 NaClThread thread; 134 NaClThread thread;
135 CHECK(NaClThreadCtor(&thread, DummyRendererThread, &thread_args, 135 CHECK(NaClThreadCtor(&thread, DummyRendererThread, &thread_args,
136 NACL_KERN_STACK_SIZE)); 136 NACL_KERN_STACK_SIZE));
137 137
138 NaClChromeMainStart(args); 138 struct NaClApp *nap = NaClAppCreate();
dmichael (off chromium) 2014/01/16 21:30:26 Here too... can you just do it on the stack?
139 NaClChromeMainStartApp(nap, args);
139 NaClLog(LOG_FATAL, "NaClChromeMainStart() should never return\n"); 140 NaClLog(LOG_FATAL, "NaClChromeMainStart() should never return\n");
140 return 1; 141 return 1;
141 } 142 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698