mirror of
https://github.com/keymanapp/keyman.git
synced 2026-10-14 01:47:30 +00:00
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
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:
commit
fef4236cbd
21 changed files with 29 additions and 29 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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[] =
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
//-------------------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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[]) {
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
#include "ldml/ldml_markers.hpp"
|
||||
|
||||
#include "processor.hpp"
|
||||
#include "../load_kmx_file.hpp"
|
||||
#include "../helpers/load_kmx_file.hpp"
|
||||
|
||||
namespace {
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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 = [
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue