summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2015-09-15 12:15:49 -0700
committerchrome-bot <chrome-bot@chromium.org>2015-09-16 14:49:46 -0700
commitc2c02249a01ec56857a51e1645060325f7558b59 (patch)
tree0c62ecf9d06d85faf881396d28c196ba187e23a8 /core
parentfe77303bec6c78786a9df1dbdb33af64787e20c8 (diff)
downloadchrome-ec-c2c02249a01ec56857a51e1645060325f7558b59.tar.gz
host: mock i2c_xfer
Instead of mocking i2c_read8/16/32, mock i2c_xfer. We can now test code that call i2c_xfer directly and test common/i2c.c BRANCH=samus, ryu BUG=chrome-os-partner:45223 TEST=Unit tests pass. Change-Id: Iaa772515c40cf55d2050d0019e2062d63278adc0 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/299768 Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'core')
-rw-r--r--core/host/host_exe.lds30
1 files changed, 3 insertions, 27 deletions
diff --git a/core/host/host_exe.lds b/core/host/host_exe.lds
index a30ebb4219..182d86cd6c 100644
--- a/core/host/host_exe.lds
+++ b/core/host/host_exe.lds
@@ -88,33 +88,9 @@ SECTIONS {
*(.rodata.deferred)
__deferred_funcs_end = .;
- __test_i2c_read8 = .;
- *(.rodata.test_i2c.read8)
- __test_i2c_read8_end = .;
-
- __test_i2c_write8 = .;
- *(.rodata.test_i2c.write8)
- __test_i2c_write8_end = .;
-
- __test_i2c_read16 = .;
- *(.rodata.test_i2c.read16)
- __test_i2c_read16_end = .;
-
- __test_i2c_write16 = .;
- *(.rodata.test_i2c.write16)
- __test_i2c_write16_end = .;
-
- __test_i2c_read32 = .;
- *(.rodata.test_i2c.read32)
- __test_i2c_read32_end = .;
-
- __test_i2c_write32 = .;
- *(.rodata.test_i2c.write32)
- __test_i2c_write32_end = .;
-
- __test_i2c_read_string = .;
- *(.rodata.test_i2c.read_string)
- __test_i2c_read_string_end = .;
+ __test_i2c_xfer = .;
+ *(.rodata.test_i2c.xfer)
+ __test_i2c_xfer_end = .;
}
}
INSERT BEFORE .rodata;