summaryrefslogtreecommitdiffstats
path: root/base/thread_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/thread_unittest.cc')
-rw-r--r--base/thread_unittest.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/base/thread_unittest.cc b/base/thread_unittest.cc
index c570e91..cad346f 100644
--- a/base/thread_unittest.cc
+++ b/base/thread_unittest.cc
@@ -8,6 +8,8 @@
#include "base/thread.h"
#include "testing/gtest/include/gtest/gtest.h"
+using base::Thread;
+
namespace {
class ToggleValue : public Task {
@@ -50,11 +52,13 @@ TEST(ThreadTest, Restart) {
EXPECT_FALSE(a.message_loop());
}
-TEST(ThreadTest, StartWithStackSize) {
+TEST(ThreadTest, StartWithOptions_StackSize) {
Thread a("StartWithStackSize");
// Ensure that the thread can work with only 12 kb and still process a
// message.
- EXPECT_TRUE(a.StartWithStackSize(12*1024));
+ Thread::Options options;
+ options.stack_size = 12*1024;
+ EXPECT_TRUE(a.StartWithOptions(options));
EXPECT_TRUE(a.message_loop());
bool was_invoked = false;