<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nobu-q</author_name>
  <author_url>https://blog.hatena.ne.jp/nobu-q/</author_url>
  <blog_title>nobu-qの日記</blog_title>
  <blog_url>https://nobu-q.hatenadiary.org/</blog_url>
  <categories>
    <anon>C++</anon>
    <anon>memo</anon>
  </categories>
  <description>gtestではテストケース毎に、テストケース全体で共有するリソースを初期化(確保)・解放する仕組みを提供している*1。これは、SetUpTestCaseとTearDownTestCaseを使用することで実現できる。 サンプルコード class TestCase : public testing::Test { protected: static void SetUpTestCase() { // 初期化 } static void TearDownTestCase() { // 解放 } // SetUp, TearDownとの併用も可能 static Type resource; // テス…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnobu-q.hatenadiary.org%2Fentry%2F20090408%2F1239159659&quot; title=&quot; gtest: SetUpTestCase, TearDownTestCase - nobu-qの日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-04-08 12:00:59</published>
  <title> gtest: SetUpTestCase, TearDownTestCase</title>
  <type>rich</type>
  <url>https://nobu-q.hatenadiary.org/entry/20090408/1239159659</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
