C++ code share and tests.