Lines Matching refs:base
7 #include "base/basictypes.h"
10 #include "base/at_exit.h"
11 #include "base/command_line.h"
12 #include "base/memory/scoped_ptr.h"
13 #include "base/process_util.h"
14 #include "base/string_util.h"
15 #include "base/test/multiprocess_test.h"
16 #include "base/test/test_timeouts.h"
17 #include "base/threading/thread.h"
18 #include "base/utf_string_conversions.h"
24 #include "base/win/win_util.h"
54 class ServiceProcessStateTest : public base::MultiProcessTest {
59 base::MessageLoopProxy* IOMessageLoopProxy() {
66 base::ShadowingAtExitManager at_exit_manager_;
67 base::Thread io_thread_;
78 base::Thread::Options options(MessageLoop::TYPE_IO, 0);
83 base::ProcessHandle handle = SpawnChild(name, false);
86 ASSERT_TRUE(base::WaitForExitCode(handle, &exit_code));
113 EXPECT_TRUE(base::win::ReadCommandFromAutoRun(HKEY_CURRENT_USER,
143 EXPECT_FALSE(base::win::ReadCommandFromAutoRun(HKEY_CURRENT_USER,
154 base::ProcessId pid;
166 ASSERT_EQ(base::GetCurrentProcId(), pid);
170 base::ProcessHandle handle = SpawnChild("ServiceProcessStateTestShutdown",
174 base::PlatformThread::Sleep(TestTimeouts::tiny_timeout_ms());
178 base::ProcessId pid;
182 ASSERT_TRUE(base::WaitForExitCodeWithTimeout(handle,
184 base::CloseProcessHandle(handle);
207 base::Thread io_thread_("ServiceProcessStateTestShutdownIOThread");
208 base::Thread::Options options(MessageLoop::TYPE_IO, 0);
231 #include "base/file_path.h"
232 #include "base/file_util.h"
233 #include "base/mac/mac_util.h"
234 #include "base/mac/scoped_cftyperef.h"
235 #include "base/memory/scoped_temp_dir.h"
236 #include "base/message_loop.h"
237 #include "base/stringprintf.h"
238 #include "base/sys_string_conversions.h"
239 #include "base/test/test_timeouts.h"
240 #include "base/threading/thread.h"
275 base::mac::ScopedCFTypeRef<CFStringRef> path(
276 base::SysUTF8ToCFStringRef(file_.value()));
278 base::mac::ScopedCFTypeRef<CFArrayRef> args(
311 base::mac::ScopedCFTypeRef<CFDictionaryRef> dict(
355 base::Thread::Options options;
414 std::string info_plist_data = base::StringPrintf(info_plist_format,
423 base::mac::ScopedCFTypeRef<CFURLRef> url(
428 base::mac::ScopedCFTypeRef<CFBundleRef> bundle(
438 base::MessageLoopProxy* GetIOMessageLoopProxy() {
446 base::Thread io_thread_;
481 EXPECT_TRUE(base::mac::FSRefFromPath(src.value(), &path_ref));
528 ASSERT_TRUE(base::mac::FSRefFromPath(bundle_path().value(), &bundle_ref));
535 std::string path(base::mac::PathFromFSRef(bundle_ref));