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

Unified Diff: base/mac/dispatch_source_mach_unittest.cc

Issue 1136953012: Move DispatchSourceMach from //sandbox/mac to //base/mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « base/mac/dispatch_source_mach.cc ('k') | sandbox/mac/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/mac/dispatch_source_mach_unittest.cc
diff --git a/sandbox/mac/dispatch_source_mach_unittest.cc b/base/mac/dispatch_source_mach_unittest.cc
similarity index 91%
rename from sandbox/mac/dispatch_source_mach_unittest.cc
rename to base/mac/dispatch_source_mach_unittest.cc
index 123a44c3c1fa2cb8e8b03d9fb35c1043b053ebe2..130ffe05cc7c86f58e450e41699ae8461045b06f 100644
--- a/sandbox/mac/dispatch_source_mach_unittest.cc
+++ b/base/mac/dispatch_source_mach_unittest.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "sandbox/mac/dispatch_source_mach.h"
+#include "base/mac/dispatch_source_mach.h"
#include <mach/mach.h>
@@ -12,7 +12,7 @@
#include "base/test/test_timeouts.h"
#include "testing/gtest/include/gtest/gtest.h"
-namespace sandbox {
+namespace base {
class DispatchSourceMachTest : public testing::Test {
public:
@@ -44,7 +44,7 @@ TEST_F(DispatchSourceMachTest, ReceiveAfterResume) {
dispatch_semaphore_t signal = dispatch_semaphore_create(0);
bool __block did_receive = false;
- DispatchSourceMach source("org.chromium.sandbox.test.ReceiveAfterResume",
+ DispatchSourceMach source("org.chromium.base.test.ReceiveAfterResume",
port(), ^{
mach_msg_empty_rcv_t msg = {{0}};
msg.header.msgh_size = sizeof(msg);
@@ -75,7 +75,7 @@ TEST_F(DispatchSourceMachTest, NoMessagesAfterDestruction) {
int* __block count_ptr = count.get();
scoped_ptr<DispatchSourceMach> source(new DispatchSourceMach(
- "org.chromium.sandbox.test.NoMessagesAfterDestruction",
+ "org.chromium.base.test.NoMessagesAfterDestruction",
port(), ^{
mach_msg_empty_rcv_t msg = {{0}};
msg.header.msgh_size = sizeof(msg);
@@ -87,7 +87,7 @@ TEST_F(DispatchSourceMachTest, NoMessagesAfterDestruction) {
source->Resume();
dispatch_queue_t queue =
- dispatch_queue_create("org.chromium.sandbox.test.MessageSend", NULL);
+ dispatch_queue_create("org.chromium.base.test.MessageSend", NULL);
dispatch_semaphore_t signal = dispatch_semaphore_create(0);
for (int i = 0; i < 30; ++i) {
dispatch_async(queue, ^{
@@ -116,4 +116,4 @@ TEST_F(DispatchSourceMachTest, NoMessagesAfterDestruction) {
dispatch_release(queue);
}
-} // namespace sandbox
+} // namespace base
« no previous file with comments | « base/mac/dispatch_source_mach.cc ('k') | sandbox/mac/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698