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

Unified Diff: chrome/browser/mach_broker_mac_unittest.cc

Issue 6142009: Upating the app, ceee, chrome, ipc, media, and net directories to use the correct lock.h file. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Unified patch updating all references to the new base/synchronization/lock.h Created 9 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/mach_broker_mac.cc ('k') | chrome/browser/net/chrome_net_log.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/mach_broker_mac_unittest.cc
diff --git a/chrome/browser/mach_broker_mac_unittest.cc b/chrome/browser/mach_broker_mac_unittest.cc
index b0e5b054b5f3464eab66bf32c2e67bef1999177b..5ed66524a24701bc0eaad086bfd1661b62249980 100644
--- a/chrome/browser/mach_broker_mac_unittest.cc
+++ b/chrome/browser/mach_broker_mac_unittest.cc
@@ -4,21 +4,21 @@
#include "chrome/browser/mach_broker_mac.h"
-#include "base/lock.h"
+#include "base/synchronization/lock.h"
#include "testing/gtest/include/gtest/gtest.h"
class MachBrokerTest : public testing::Test {
public:
// Helper function to acquire/release locks and call |PlaceholderForPid()|.
void AddPlaceholderForPid(base::ProcessHandle pid) {
- AutoLock lock(broker_.GetLock());
+ base::AutoLock lock(broker_.GetLock());
broker_.AddPlaceholderForPid(pid);
}
// Helper function to acquire/release locks and call |FinalizePid()|.
void FinalizePid(base::ProcessHandle pid,
const MachBroker::MachInfo& mach_info) {
- AutoLock lock(broker_.GetLock());
+ base::AutoLock lock(broker_.GetLock());
broker_.FinalizePid(pid, mach_info);
}
@@ -28,7 +28,7 @@ class MachBrokerTest : public testing::Test {
TEST_F(MachBrokerTest, Locks) {
// Acquire and release the locks. Nothing bad should happen.
- AutoLock lock(broker_.GetLock());
+ base::AutoLock lock(broker_.GetLock());
}
TEST_F(MachBrokerTest, AddPlaceholderAndFinalize) {
« no previous file with comments | « chrome/browser/mach_broker_mac.cc ('k') | chrome/browser/net/chrome_net_log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698