<trclass="memitem:a8f71a95dc0f7e8458694443a2b26dd2c"><tdclass="memItemLeft"align="right"valign="top">enum  </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="classcrashpad_1_1test_1_1TestPaths.html#a8f71a95dc0f7e8458694443a2b26dd2c">FileType</a><trclass="memdesc:a8f71a95dc0f7e8458694443a2b26dd2c"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The type of file requested of <aclass="el"href="classcrashpad_1_1test_1_1TestPaths.html#a2e6e7d9320faa239b7c1b788f9f48589"title="Returns the pathname of a build artifact. ">BuildArtifact()</a>. <ahref="classcrashpad_1_1test_1_1TestPaths.html#a8f71a95dc0f7e8458694443a2b26dd2c">More...</a><br/></td></tr>
<trclass="memitem:a7e035319ae61157982fcb2317cfef21f"><tdclass="memItemLeft"align="right"valign="top">enum  </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="classcrashpad_1_1test_1_1TestPaths.html#a7e035319ae61157982fcb2317cfef21f">Architecture</a><trclass="memdesc:a7e035319ae61157982fcb2317cfef21f"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The architecture of the file requested of <aclass="el"href="classcrashpad_1_1test_1_1TestPaths.html#a2e6e7d9320faa239b7c1b788f9f48589"title="Returns the pathname of a build artifact. ">BuildArtifact()</a>. <ahref="classcrashpad_1_1test_1_1TestPaths.html#a7e035319ae61157982fcb2317cfef21f">More...</a><br/></td></tr>
<trclass="memdesc:ac7351ad5bba670bab617e4981196fb59"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the pathname of the currently-running test executable. <ahref="#ac7351ad5bba670bab617e4981196fb59">More...</a><br/></td></tr>
<trclass="memdesc:a5dab61cf91bed0b10a6f35ea1b73eeaa"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the expected basename of the currently-running test executable. <ahref="#a5dab61cf91bed0b10a6f35ea1b73eeaa">More...</a><br/></td></tr>
<trclass="memdesc:a43295a9664e969f260216ad83bf66318"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the pathname of the test data root. <ahref="#a43295a9664e969f260216ad83bf66318">More...</a><br/></td></tr>
<trclass="memdesc:a2e6e7d9320faa239b7c1b788f9f48589"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the pathname of a build artifact. <ahref="#a2e6e7d9320faa239b7c1b788f9f48589">More...</a><br/></td></tr>
<p>The architecture of the file requested of <aclass="el"href="classcrashpad_1_1test_1_1TestPaths.html#a2e6e7d9320faa239b7c1b788f9f48589"title="Returns the pathname of a build artifact. ">BuildArtifact()</a>. </p>
<tableclass="fieldtable">
<tr><thcolspan="2">Enumerator</th></tr><tr><tdclass="fieldname"><aid="a7e035319ae61157982fcb2317cfef21fa6867faeaa475fda467e48267db2bb8a8"></a>kDefault </td><tdclass="fielddoc"><p>The default architecture is requested. This is usually the same architecture as the running process. </p>
</td></tr>
<tr><tdclass="fieldname"><aid="a7e035319ae61157982fcb2317cfef21faa755d84d293c41c0947a73f25594f16c"></a>k32Bit </td><tdclass="fielddoc"><p>The 32-bit variant is requested. </p>
<p>On Windows, when running 64-bit code, the 32-bit variant can be requested. Before doing so, <aclass="el"href="classcrashpad_1_1test_1_1TestPaths.html#a2ad926b54eca4e5df637a51fb485fdf7">Has32BitBuildArtifacts()</a> must be called and must return <code>true</code>. Otherwise, execution will be aborted. </p>
<p>The type of file requested of <aclass="el"href="classcrashpad_1_1test_1_1TestPaths.html#a2e6e7d9320faa239b7c1b788f9f48589"title="Returns the pathname of a build artifact. ">BuildArtifact()</a>. </p>
<p>This is used to establish the file extension used by the returned path. </p>
<tableclass="fieldtable">
<tr><thcolspan="2">Enumerator</th></tr><tr><tdclass="fieldname"><aid="a8f71a95dc0f7e8458694443a2b26dd2ca35c3ace1970663a16e5c65baa5941b13"></a>kNone </td><tdclass="fielddoc"><p>No file extension is requested. </p>
</td></tr>
<tr><tdclass="fieldname"><aid="a8f71a95dc0f7e8458694443a2b26dd2ca34866f483b2de26f50c260108d07b9d5"></a>kExecutable </td><tdclass="fielddoc"><p><code>.exe</code> will be used on Windows, and no file extension will be used on other platforms. </p>
</td></tr>
<tr><tdclass="fieldname"><aid="a8f71a95dc0f7e8458694443a2b26dd2cafdaff58895d4dc44a22810f63d865aec"></a>kLoadableModule </td><tdclass="fielddoc"><p><code>.dll</code> will be used on Windows, and <code>.so</code> will be used on other platforms. </p>
<tr><tdclass="fieldname"><aid="a8f71a95dc0f7e8458694443a2b26dd2ca48d07336103c8e23d8a011ba88686731"></a>kCertificate </td><tdclass="fielddoc"><p><code>.pem</code> used for all platforms. </p>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">module</td><td>The name of the Crashpad module associated with the artifact, such as <code>"util"</code> or <code>"snapshot"</code>. <em>module</em> must correspond to the module of the calling code, or execution will be aborted. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">artifact</td><td>The name of the specific artifact. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">file_type</td><td>The artifact’s type, used to establish the returned path’s extension. </td></tr>
<dlclass="section return"><dt>Returns</dt><dd>The computed pathname to the build artifact.</dd></dl>
<p>For example, the following snippet will return a path to <code>crashpad_snapshot_test_module.so</code> or <code>crashpad_snapshot_test_module.dll</code> (depending on platform) in the same directory as the currently running executable:</p>
<divclass="fragment"><divclass="line">base::FilePath path = <aclass="code"href="classcrashpad_1_1test_1_1TestPaths.html#a2e6e7d9320faa239b7c1b788f9f48589">TestPaths::BuildArtifact</a>(</div><divclass="line"> FILE_PATH_LITERAL(<spanclass="stringliteral">"snapshot"</span>),</div><divclass="line"> FILE_PATH_LITERAL(<spanclass="stringliteral">"module"</span>),</div><divclass="line"><aclass="code"href="classcrashpad_1_1test_1_1TestPaths.html#a8f71a95dc0f7e8458694443a2b26dd2cafdaff58895d4dc44a22810f63d865aec">TestPaths::FileType::kLoadableModule</a>);</div></div><!-- fragment -->
<p>Returns the expected basename of the currently-running test executable. </p>
<p>In Crashpad’s standalone build, this returns <em>name</em>, with the system’s extension for executables (<code>.exe</code>) appended if appropriate.</p>
<p>When building in Chromium, <em>name</em> is ignored, and the name of the monolithic test executable (<code>crashpad_tests</code>) is returned, with the system’s extension for executables appended if appropriate.</p>
<p>Only use this function to determine test expectations.</p>
<p>Do not use this function to obtain the name of the currently running test executable, use <aclass="el"href="classcrashpad_1_1test_1_1TestPaths.html#ac7351ad5bba670bab617e4981196fb59"title="Returns the pathname of the currently-running test executable. ">Executable()</a> instead. Do not use this function to locate other build artifacts, use <aclass="el"href="classcrashpad_1_1test_1_1TestPaths.html#a2e6e7d9320faa239b7c1b788f9f48589"title="Returns the pathname of a build artifact. ">BuildArtifact()</a> instead. </p>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> if 32-bit build artifacts are available.</dd></dl>
<p>Tests that require the use of 32-bit build output should call this function to determine whether that output is available. This function is only provided to aid 64-bit test code in locating 32-bit output. Only if this function indicates that 32-bit output is available, 64-bit test code may call <aclass="el"href="classcrashpad_1_1test_1_1TestPaths.html#a2e6e7d9320faa239b7c1b788f9f48589"title="Returns the pathname of a build artifact. ">BuildArtifact()</a> with <aclass="el"href="classcrashpad_1_1test_1_1TestPaths.html#a7e035319ae61157982fcb2317cfef21faa755d84d293c41c0947a73f25594f16c"title="The 32-bit variant is requested. ">Architecture::k32Bit</a> to obtain a path to the 32-bit output.</p>
<p>32-bit test code may assume the existence of 32-bit build output, which can be found its own directory, and located by calling <aclass="el"href="classcrashpad_1_1test_1_1TestPaths.html#a2e6e7d9320faa239b7c1b788f9f48589"title="Returns the pathname of a build artifact. ">BuildArtifact()</a> with <aclass="el"href="classcrashpad_1_1test_1_1TestPaths.html#a7e035319ae61157982fcb2317cfef21fa6867faeaa475fda467e48267db2bb8a8"title="The default architecture is requested. This is usually the same architecture as the running process...">Architecture::kDefault</a>. </p>
<p>Returns the pathname of the test data root. </p>
<p>If the <code>CRASHPAD_TEST_DATA_ROOT</code> environment variable is set, its value will be returned. Otherwise, this function will attempt to locate the test data root relative to the executable path. If this fails, it will fall back to returning the current working directory.</p>
<p>At present, the test data root is normally the root of the Crashpad source tree, although this may not be the case indefinitely. This function may only be used to locate test data, not for arbitrary access to source files. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>