Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(226)

Side by Side Diff: chrome/browser/process_singleton_linux_unittest.cc

Issue 10500016: Move test_browser_thread.h from content\test to content\public\test. This way we can enforce that i… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/process_singleton.h" 5 #include "chrome/browser/process_singleton.h"
6 6
7 #include <sys/types.h> 7 #include <sys/types.h>
8 #include <sys/wait.h> 8 #include <sys/wait.h>
9 #include <signal.h> 9 #include <signal.h>
10 #include <unistd.h> 10 #include <unistd.h>
11 #include <vector> 11 #include <vector>
12 #include <string> 12 #include <string>
13 13
14 #include "base/bind.h" 14 #include "base/bind.h"
15 #include "base/command_line.h" 15 #include "base/command_line.h"
16 #include "base/file_path.h" 16 #include "base/file_path.h"
17 #include "base/message_loop.h" 17 #include "base/message_loop.h"
18 #include "base/process_util.h" 18 #include "base/process_util.h"
19 #include "base/scoped_temp_dir.h" 19 #include "base/scoped_temp_dir.h"
20 #include "base/stringprintf.h" 20 #include "base/stringprintf.h"
21 #include "base/synchronization/waitable_event.h" 21 #include "base/synchronization/waitable_event.h"
22 #include "base/test/test_timeouts.h" 22 #include "base/test/test_timeouts.h"
23 #include "base/test/thread_test_helper.h" 23 #include "base/test/thread_test_helper.h"
24 #include "base/threading/thread.h" 24 #include "base/threading/thread.h"
25 #include "chrome/common/chrome_constants.h" 25 #include "chrome/common/chrome_constants.h"
26 #include "content/test/test_browser_thread.h" 26 #include "content/public/test/test_browser_thread.h"
27 #include "net/base/net_util.h" 27 #include "net/base/net_util.h"
28 #include "testing/gtest/include/gtest/gtest.h" 28 #include "testing/gtest/include/gtest/gtest.h"
29 29
30 using content::BrowserThread; 30 using content::BrowserThread;
31 31
32 namespace { 32 namespace {
33 33
34 bool NotificationCallback(const CommandLine& command_line, 34 bool NotificationCallback(const CommandLine& command_line,
35 const FilePath& current_directory) { 35 const FilePath& current_directory) {
36 return true; 36 return true;
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 367
368 // Also change the hostname, so the remote does not retry. 368 // Also change the hostname, so the remote does not retry.
369 EXPECT_EQ(0, unlink(lock_path_.value().c_str())); 369 EXPECT_EQ(0, unlink(lock_path_.value().c_str()));
370 EXPECT_EQ(0, symlink("FAKEFOOHOST-1234", lock_path_.value().c_str())); 370 EXPECT_EQ(0, symlink("FAKEFOOHOST-1234", lock_path_.value().c_str()));
371 371
372 std::string url("about:blank"); 372 std::string url("about:blank");
373 EXPECT_EQ(ProcessSingleton::PROFILE_IN_USE, 373 EXPECT_EQ(ProcessSingleton::PROFILE_IN_USE,
374 NotifyOtherProcessOrCreate(url, TestTimeouts::action_timeout_ms())); 374 NotifyOtherProcessOrCreate(url, TestTimeouts::action_timeout_ms()));
375 } 375 }
376 376
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_dialog_cloud_unittest.cc ('k') | chrome/browser/profiles/profile_info_cache_unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698