fuse_gtest_files.pyを用いることで、srcディレクトリ配下のソースコード をまとめたgtest-all.ccとincludeディレクトリ配下のインクルードファイ ルをまとめたgtest.hが作成されます。 $ cd gtest-1.7.0 $ ./scripts/fuse_gtest_files.py out $ tree out/ out/ `-- gtest |-- gtest-all.cc `-- gtest.h 1 directory, 2 files ここで作成されたgtest-all.ccとgtest.hはsrc/gtest-all.ccと include/gtest.hとは異なるもので、src/gtest-all.cc等がincludeディレク ティブで参照している別のソースコードを展開したものがとなります。 ここで作成したgtest.hをインクルードし、こ
環境:Mac OS X 10.10.1, gcc version 4.8.3 (MacPorts gcc48 4.8.3_4) はじめに Google TestはGoogle C++ Testing Frameworkのことで,C++用のコードのテストを簡単に書くための補助ライブラリです。 ここではテスト対象のソースコード及びGoogle Testのソースコードを次のように配置することにします。 google_test_sample_code/ ├makefile ├main.cc ├atom.h ├atom.cc (テストしたいクラスのソース) └gtest/ (テスト関連ファイルを入れるディレクトリ) ├makefile ├main.cc (テスト時のメインソース) ├atom_test.cc (Atomクラスのテストを書いたソース) └gtest-1.7.0/ (Google Te
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く