Merge pull request #15833 from keymanapp/chore/core/embed-osk/move-test-helpers
Some checks are pending
Keyman Build Summary / Summarize build status checks (push) Waiting to run

chore(core): move test helpers into helpers/ folder 🔱
This commit is contained in:
Marc Durdin 2026-04-17 06:17:38 +10:00 • committed by GitHub
commit fef4236cbd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 29 additions and 29 deletions

View file

@ -5,8 +5,8 @@
#include <gtest/gtest.h>
#include <keyman/keyman_core_api.h>
#include "emscripten_filesystem.h"
#include "load_kmx_file.hpp"
#include "./helpers/emscripten_filesystem.h"
#include "./helpers/load_kmx_file.hpp"
km::core::path test_dir;

View file

@ -12,7 +12,7 @@
#include "action.hpp"
#include <test_assert.h>
#include "../emscripten_filesystem.h"
#include "../helpers/emscripten_filesystem.h"
const km_core_action_item alert_action_item();
const km_core_action_item bksp_action_item(uint8_t type, uintptr_t value);

View file

@ -13,8 +13,8 @@
#include "action.hpp"
#include <test_assert.h>
#include "../emscripten_filesystem.h"
#include "../load_kmx_file.hpp"
#include "../helpers/emscripten_filesystem.h"
#include "../helpers/load_kmx_file.hpp"
const km_core_action_item alert_action_item();
const km_core_action_item bksp_action_item(uint8_t type, uintptr_t value);

View file

@ -14,8 +14,8 @@
#include "context.hpp"
#include <test_assert.h>
#include "../emscripten_filesystem.h"
#include "../load_kmx_file.hpp"
#include "../helpers/emscripten_filesystem.h"
#include "../helpers/load_kmx_file.hpp"
km_core_option_item test_env_opts[] =
{

View file

@ -14,8 +14,8 @@
#include "context.hpp"
#include <test_assert.h>
#include "../emscripten_filesystem.h"
#include "../load_kmx_file.hpp"
#include "../helpers/emscripten_filesystem.h"
#include "../helpers/load_kmx_file.hpp"
void compare_context(km_core_context *app_context, const km_core_cu* expected_final_app_context);

View file

@ -21,8 +21,8 @@
#include "debug_items.hpp"
#include <test_assert.h>
#include "../emscripten_filesystem.h"
#include "../load_kmx_file.hpp"
#include "../helpers/emscripten_filesystem.h"
#include "../helpers/load_kmx_file.hpp"
using namespace km::core::kmx;

View file

@ -7,8 +7,8 @@
#include "path.hpp"
#include "mock/mock_processor.hpp"
#include "../emscripten_filesystem.h"
#include "../load_kmx_file.hpp"
#include "../helpers/emscripten_filesystem.h"
#include "../helpers/load_kmx_file.hpp"
#include <test_assert.h>
//-------------------------------------------------------------------------------------

View file

@ -28,8 +28,8 @@
#include <test_assert.h>
#include <test_color.h>
#include "../emscripten_filesystem.h"
#include "../load_kmx_file.hpp"
#include "../helpers/emscripten_filesystem.h"
#include "../helpers/load_kmx_file.hpp"
#include "kmx_test_source.hpp"

View file

@ -13,8 +13,8 @@
#include "../kmnkbd/action_items.hpp"
#include <test_assert.h>
#include <test_color.h>
#include "../emscripten_filesystem.h"
#include "../load_kmx_file.hpp"
#include "../helpers/emscripten_filesystem.h"
#include "../helpers/load_kmx_file.hpp"
#include <map>
#include <iostream>

View file

@ -13,8 +13,8 @@
#include "../kmnkbd/action_items.hpp"
#include <test_assert.h>
#include <test_color.h>
#include "../emscripten_filesystem.h"
#include "../load_kmx_file.hpp"
#include "../helpers/emscripten_filesystem.h"
#include "../helpers/load_kmx_file.hpp"
#include "utfcodec.hpp"
#include <map>

View file

@ -14,8 +14,8 @@
#include <test_assert.h>
#include <test_color.h>
#include "../emscripten_filesystem.h"
#include "../load_kmx_file.hpp"
#include "../helpers/emscripten_filesystem.h"
#include "../helpers/load_kmx_file.hpp"
using namespace km::core::kmx;

View file

@ -12,8 +12,8 @@
#include "action.hpp"
#include <test_assert.h>
#include "../emscripten_filesystem.h"
#include "../load_kmx_file.hpp"
#include "../helpers/emscripten_filesystem.h"
#include "../helpers/load_kmx_file.hpp"
//-------------------------------------------------------------------------------------
// Context normalization tests

View file

@ -14,7 +14,7 @@
#include <test_assert.h>
#include "keyman_core.h"
#include "../load_kmx_file.hpp"
#include "../helpers/load_kmx_file.hpp"
int main(int argc, const char *argv[]) {

View file

@ -36,7 +36,7 @@
#include "ldml/ldml_markers.hpp"
#include "processor.hpp"
#include "../load_kmx_file.hpp"
#include "../helpers/load_kmx_file.hpp"
namespace {

View file

@ -40,7 +40,7 @@
#include "unicode/uniset.h"
#include "unicode/usetiter.h"
#include "../load_kmx_file.hpp"
#include "../helpers/load_kmx_file.hpp"
#include <test_assert.h>
#include <test_color.h>

View file

@ -19,7 +19,7 @@
#include "action.hpp"
#include <test_assert.h>
#include "../emscripten_filesystem.h"
#include "../helpers/emscripten_filesystem.h"
#include "core_icu.h"
#include <unicode/uversion.h>

View file

@ -16,8 +16,8 @@ else
endif
test_util_files = [
meson.current_source_dir() / 'emscripten_filesystem.cpp',
meson.current_source_dir() / 'load_kmx_file.cpp',
meson.current_source_dir() / 'helpers' / 'emscripten_filesystem.cpp',
meson.current_source_dir() / 'helpers' / 'load_kmx_file.cpp',
]
common_test_files = [