<feed xmlns='http://www.w3.org/2005/Atom'>
<title>replicant/core/base/test_utils.cpp, branch master</title>
<subtitle>Patches not merged yet, used for building and testing them
</subtitle>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/'/>
<entry>
<title>base: allow creating tempfile in a custom temporary dir.</title>
<updated>2017-12-06T22:20:07+00:00</updated>
<author>
<name>Yabin Cui</name>
<email>yabinc@google.com</email>
</author>
<published>2017-12-06T22:20:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=464ea6114353a18b4cb5fc2c70f8553f5ba9dc2e'/>
<id>464ea6114353a18b4cb5fc2c70f8553f5ba9dc2e</id>
<content type='text'>
Bug: http://b/70232908
Test: none.
Change-Id: I24b894793f6725186b3582a91db083427e51aa5a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bug: http://b/70232908
Test: none.
Change-Id: I24b894793f6725186b3582a91db083427e51aa5a
</pre>
</div>
</content>
</entry>
<entry>
<title>Add the Release function for TemporaryFiles</title>
<updated>2017-09-11T21:08:32+00:00</updated>
<author>
<name>Tianjie Xu</name>
<email>xunchang@google.com</email>
</author>
<published>2017-09-11T19:01:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=f9bc1b057165bb5ea89acf135f7f3a90eff579ab'/>
<id>f9bc1b057165bb5ea89acf135f7f3a90eff579ab</id>
<content type='text'>
Some tests may create a File* by calling fdopen() on the temp file's
fd. We should release the ownership of fd in this case to avoid the
double close.

Bug: 65430057
Test: libbase unit tests pass
Change-Id: I54fcce2029f9a574f53afdbdda737ee58620c73a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some tests may create a File* by calling fdopen() on the temp file's
fd. We should release the ownership of fd in this case to avoid the
double close.

Bug: 65430057
Test: libbase unit tests pass
Change-Id: I54fcce2029f9a574f53afdbdda737ee58620c73a
</pre>
</div>
</content>
</entry>
<entry>
<title>libbase: fix the way to find temp dir.</title>
<updated>2017-02-13T23:50:56+00:00</updated>
<author>
<name>Yabin Cui</name>
<email>yabinc@google.com</email>
</author>
<published>2016-12-15T01:45:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=57e9cea09936e7a761be7b60bbf229f6b4a1ed1d'/>
<id>57e9cea09936e7a761be7b60bbf229f6b4a1ed1d</id>
<content type='text'>
Tests running in app context can't access /data/local/tmp,
so try current directory if /data/local/tmp is not accessible.

Bug: http://b/18790309
Test: run unit test in app context and shell context.
Change-Id: If66fe8f0ac3edb3a32a2a2a50a524364f818a58b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Tests running in app context can't access /data/local/tmp,
so try current directory if /data/local/tmp is not accessible.

Bug: http://b/18790309
Test: run unit test in app context and shell context.
Change-Id: If66fe8f0ac3edb3a32a2a2a50a524364f818a58b
</pre>
</div>
</content>
</entry>
<entry>
<title>Move CapturedStderr to test_util library</title>
<updated>2016-10-22T17:35:21+00:00</updated>
<author>
<name>Wei Wang</name>
<email>wvw@google.com</email>
</author>
<published>2016-10-21T16:23:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=8c176302e6a6b4de40079af42c30d8d00da89f30'/>
<id>8c176302e6a6b4de40079af42c30d8d00da89f30</id>
<content type='text'>
Bug: 32181382
Test: run /data/nativetest(64)/binderTextOutputTest
Change-Id: Ifb2e1f6af2c3f57b5cbed7dde65efb31253c52a2
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bug: 32181382
Test: run /data/nativetest(64)/binderTextOutputTest
Change-Id: Ifb2e1f6af2c3f57b5cbed7dde65efb31253c52a2
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove libbase's libutils dependency.</title>
<updated>2016-02-17T19:53:54+00:00</updated>
<author>
<name>Elliott Hughes</name>
<email>enh@google.com</email>
</author>
<published>2016-02-17T19:53:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=38e2b63db85a1c0990aaafaee8f79e52b46358e9'/>
<id>38e2b63db85a1c0990aaafaee8f79e52b46358e9</id>
<content type='text'>
Yuck.

Change-Id: If84758f25bc15d5b1a732eaccc226385f51cac13
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Yuck.

Change-Id: If84758f25bc15d5b1a732eaccc226385f51cac13
</pre>
</div>
</content>
</entry>
<entry>
<title>Track rename of base/ to android-base/.</title>
<updated>2015-12-05T06:00:26+00:00</updated>
<author>
<name>Elliott Hughes</name>
<email>enh@google.com</email>
</author>
<published>2015-12-05T06:00:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=4f71319df011d796a60a43fc1bc68e16fbf7d321'/>
<id>4f71319df011d796a60a43fc1bc68e16fbf7d321</id>
<content type='text'>
Change-Id: Idf9444fece4aa89c93e15640de59a91f6e758ccf
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: Idf9444fece4aa89c93e15640de59a91f6e758ccf
</pre>
</div>
</content>
</entry>
<entry>
<title>adb/base win32 tests: fix comment and open() flags</title>
<updated>2015-09-01T21:57:58+00:00</updated>
<author>
<name>Spencer Low</name>
<email>CompareAndSwap@gmail.com</email>
</author>
<published>2015-09-01T21:57:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=2fbeb0cc713f47ec699bfed4bc530aa19e08e1a3'/>
<id>2fbeb0cc713f47ec699bfed4bc530aa19e08e1a3</id>
<content type='text'>
Match base's use of O_BINARY.

Change-Id: I930b5c8fddde20966580069f2e681b99cb26f1a3
Signed-off-by: Spencer Low &lt;CompareAndSwap@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Match base's use of O_BINARY.

Change-Id: I930b5c8fddde20966580069f2e681b99cb26f1a3
Signed-off-by: Spencer Low &lt;CompareAndSwap@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>libbase_test: win32: get some tests working</title>
<updated>2015-08-03T17:54:17+00:00</updated>
<author>
<name>Spencer Low</name>
<email>CompareAndSwap@gmail.com</email>
</author>
<published>2015-08-01T03:21:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=40d0c7aead38971a99cfcf6af4235623154f8c7a'/>
<id>40d0c7aead38971a99cfcf6af4235623154f8c7a</id>
<content type='text'>
* Get it building on Win32 by implementing mkstemp() and mkdtemp().

* Run StringPrintf %z test on Windows because it passes because we build
with __USE_MINGW_ANSI_STDIO which implements %z.

Change-Id: Ia01f94e8258503381a1df6d3da6e40de59e57125
Signed-off-by: Spencer Low &lt;CompareAndSwap@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Get it building on Win32 by implementing mkstemp() and mkdtemp().

* Run StringPrintf %z test on Windows because it passes because we build
with __USE_MINGW_ANSI_STDIO which implements %z.

Change-Id: Ia01f94e8258503381a1df6d3da6e40de59e57125
Signed-off-by: Spencer Low &lt;CompareAndSwap@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Write mkdirs in more idiomatic C++ style.</title>
<updated>2015-07-30T22:08:53+00:00</updated>
<author>
<name>Alex Vallée</name>
<email>avallee@chromium.org</email>
</author>
<published>2015-05-06T20:26:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=47d67c96ec991ef1690b4c07188335cbc4bfa2aa'/>
<id>47d67c96ec991ef1690b4c07188335cbc4bfa2aa</id>
<content type='text'>
~ Rewrote mkdirs to be in C++ style.
~ Replaced adb_dir{start,stop} with std::string params and (r)find.
+ Added test for mkdirs.

Also make base/test_utils.h public and support temporary directories
as well as files.

Change-Id: I6fcbdc5e0099f3359d3aac6b00c436f250ca1329
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
~ Rewrote mkdirs to be in C++ style.
~ Replaced adb_dir{start,stop} with std::string params and (r)find.
+ Added test for mkdirs.

Also make base/test_utils.h public and support temporary directories
as well as files.

Change-Id: I6fcbdc5e0099f3359d3aac6b00c436f250ca1329
</pre>
</div>
</content>
</entry>
<entry>
<title>Get libbase tests working on Windows.</title>
<updated>2015-04-30T00:11:28+00:00</updated>
<author>
<name>Dan Albert</name>
<email>danalbert@google.com</email>
</author>
<published>2015-04-29T18:32:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=0c4b3a319d2bc3dbc917e869af34e24788e6fc48'/>
<id>0c4b3a319d2bc3dbc917e869af34e24788e6fc48</id>
<content type='text'>
Tests using files from /proc still fail on Windows (obviously), but
all tests are passing when run in Wine.

Change-Id: Ie4c3ba65b642202f8fcaec73332a53bee6115fba
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Tests using files from /proc still fail on Windows (obviously), but
all tests are passing when run in Wine.

Change-Id: Ie4c3ba65b642202f8fcaec73332a53bee6115fba
</pre>
</div>
</content>
</entry>
</feed>
