chromium/third_party/liblouis/wasm/liblouis_wrapper_browsertest.cc

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "base/base_paths.h"
#include "base/files/file_path.h"
#include "base/path_service.h"
#include "chrome/browser/extensions/extension_apitest.h"
#include "content/public/test/browser_test.h"

using LibLouisWrapperTest = extensions::ExtensionApiTest;

IN_PROC_BROWSER_TEST_F(LibLouisWrapperTest, LibLouisLoad) {
  ASSERT_TRUE(base::PathService::Get(base::DIR_EXE, &test_data_dir_));
  test_data_dir_ = test_data_dir_.AppendASCII("chromevox_test_data");
  LOG(ERROR) << "Test data dir: " << test_data_dir_.MaybeAsASCII();
  ASSERT_TRUE(RunExtensionTest("braille")) << message_;
}