1 /*
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
4  * found in the LICENSE file.
5  */
6 
7 #include "native_client/src/trusted/fault_injection/test_injection.h"
8 
9 static struct NaClTestInjectionTable const g_null_test_injection;
10 /*
11  * Zero filled.  This structure contains function pointers for test
12  * injection, and this file's definition is for tests where no test
13  * injection should occur.  The structure will (slowly) grow in size
14  * as the number of tests that need test injection junctures grow, and
15  * the header dependency will cause the recompilation to occur.
16  */
17 
18 struct NaClTestInjectionTable const *g_nacl_test_injection_functions =
19     &g_null_test_injection;
20 
NaClTestInjectionSetInjectionTable(struct NaClTestInjectionTable const * new_table)21 void NaClTestInjectionSetInjectionTable(
22     struct NaClTestInjectionTable const *new_table) {
23   g_nacl_test_injection_functions = new_table;
24 }
25