[chromium-dev] seeking advice on writing a unittest in test_shell_tests that needs to use an IO thread

2009-09-24 Thread
Hi, I'm writing some unittests in test_shell_tests. Some of the tests need to run on the IO thread, but test_shell_tests uses the UI thread for its tests. Can anyone point me to some sample code (preferably a test_shell_test) that uses an IO thread in the test? So far, what I've tried is

[chromium-dev] Re: seeking advice on writing a unittest in test_shell_tests that needs to use an IO thread

2009-09-24 Thread
will not treat your test class as a refcounted class. * Access violation was my own (lame) bug. Jenn On Thu, Sep 24, 2009 at 11:38 AM, Jenn Braithwaite (胡慧鋒) je...@google.comwrote: Hi, I'm writing some unittests in test_shell_tests. Some of the tests need to run on the IO thread

[chromium-dev] how to trigger a non-success status for URLRequest in unittests?

2009-09-25 Thread
Hi, I want my unittest to result in my URLRequest getting a non-success status. How do I do that? When I use http://localhost/foo; as my URL, I get a non-success status with os_error = -102 when testing on Vista64, but I don't know if this will guarantee me a non-success status all the time on

[chromium-dev] Re: how to trigger a non-success status for URLRequest in unittests?

2009-09-28 Thread
looking for. Andrew On Fri, Sep 25, 2009 at 7:02 PM, Jenn Braithwaite (胡慧鋒) je...@google.comwrote: Hi, I want my unittest to result in my URLRequest getting a non-success status. How do I do that? When I use http://localhost/foo; as my URL, I get a non-success status with os_error

[chromium-dev] Re: how to trigger a non-success status for URLRequest in unittests?

2009-09-28 Thread
Even better! Thanks! 2009/9/28 Darin Fisher da...@chromium.org URLRequest also has a SimulateError method.-Darin On Mon, Sep 28, 2009 at 1:44 PM, Jenn Braithwaite (胡慧鋒) je...@google.comwrote: Thanks - url_request_test_job.h is exactly what I needed! Jenn On Fri, Sep 25, 2009 at 7:21

[chromium-dev] url request failing on unix with os_error = -7

2009-10-01 Thread
Hi, The failure is in a unittest and only fails like this on linux. The windows trybot is happy. The test uses HTTPTestServer (which talks to testserver.py). Can someone tell me what os_error of -7 means on linux? Thanks, Jenn --~--~-~--~~~---~--~~ Chromium

[chromium-dev] Re: url request failing on unix with os_error = -7

2009-10-01 Thread
I get the same behavior on the mac trybot too. Anyone seen this before? On Thu, Oct 1, 2009 at 4:58 PM, Jenn Braithwaite (胡慧鋒) je...@google.comwrote: Hi, The failure is in a unittest and only fails like this on linux. The windows trybot is happy. The test uses HTTPTestServer (which talks

[chromium-dev] Re: url request failing on unix with os_error = -7

2009-10-01 Thread
mac and linux, I doubt it is a try slave failure... ? Jenn On Thu, Oct 1, 2009 at 5:32 PM, Paweł Hajdan Jr. phajdan...@chromium.orgwrote: Does it fail consistently? If so, could you post a link to your CL? On Thu, Oct 1, 2009 at 17:30, Jenn Braithwaite (胡慧鋒) je...@google.comwrote: I get

[chromium-dev] Re: url request failing on unix with os_error = -7

2009-10-01 Thread
. On Thu, Oct 1, 2009 at 4:58 PM, Jenn Braithwaite (胡慧鋒) je...@google.comwrote: Hi, The failure is in a unittest and only fails like this on linux. The windows trybot is happy. The test uses HTTPTestServer (which talks to testserver.py). Can someone tell me what os_error of -7 means on linux