{"width":"100%","description":"\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u66f8\u3044\u3066\u308b\u3068\u5bfe\u8c61\u306e\u30af\u30e9\u30b9\u306eprivate\u30e1\u30f3\u30d0\u306e\u5024\u304c\u77e5\u308a\u305f\u3044\u3068\u304d\u304c\u3088\u304f\u3042\u308b\u3002 class MyTest; #define private \\ friend class ::MyTest; private #include <TargetClass.h> #include <cxxtest/TestSuite.h> class MyTest : public CxxTest::TestSuite { public: void testHoge() { auto p = new TargetClass(); TS_ASSERT_EQUAL(100, p->privateMember_);\u2026","provider_url":"https://hatena.blog","title":"C++\u5358\u4f53\u30c6\u30b9\u30c8TIPS \uff5e\u307f\u3093\u306a\u3068\u3082\u3060\u3061\uff5e","published":"2017-02-16 13:59:15","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshive.hateblo.jp%2Fentry%2F2017%2F02%2F16%2F135915\" title=\"C++\u5358\u4f53\u30c6\u30b9\u30c8TIPS \uff5e\u307f\u3093\u306a\u3068\u3082\u3060\u3061\uff5e - \u30b2\u30fc\u30e0\u30a8\u30f3\u30b8\u30cb\u30a2\u306a\u65e5\u3005\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://shive.hateblo.jp/entry/2017/02/16/135915","blog_title":"\u30b2\u30fc\u30e0\u30a8\u30f3\u30b8\u30cb\u30a2\u306a\u65e5\u3005","author_name":"shive","version":"1.0","categories":[],"type":"rich","provider_name":"Hatena Blog","image_url":null,"blog_url":"https://shive.hateblo.jp/","author_url":"https://blog.hatena.ne.jp/shive/"}