China is shaping up to be the first real test of Big Tech’s ambitions in the world of carmaking, with giants from Huawei Technologies Co. to Baidu Inc. plowing almost $19 billion into electric and self-driving vehicle ventures widely seen as the future of transport.

While Apple Inc. has long had plans for its own car and Alphabet Inc. has Waymo, its autonomous driving unit, the size — and speed — of the move by China’s tech titans puts them at the vanguard of that broader push. The lure is an industry that’s becoming increasingly high tech as it pivots away from the combustion engine, with sensors and operating systems making cars more like computers, and the prospect of autonomy re-envisioning how people use will them.

As the world’s biggest market for new-energy cars, China is a key battlefield. Established automakers like Volkswagen AG and General Motors Co. are already slogging it out with local upstarts such as market darling Nio Inc. and Xpeng Inc. Over the past three months, Huawei, smartphone giant Xiaomi Corp., Baidu — which runs China’s top search engine and a mapping app — and even Apple’s Taiwanese manufacturing partner Foxconn have joined the fray, forging tie-ups and unveiling their own carmaking plans.