summaryrefslogtreecommitdiffstats
path: root/chrome/browser/mach_broker_mac_unittest.cc
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-09 08:04:53 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-09 08:04:53 +0000
commit3a3085e4167ef0a9e9b0b8c31930e2e61dc210fc (patch)
treeb8b73d5e2d2418bd3a15e0ffdc488080cc21d27d /chrome/browser/mach_broker_mac_unittest.cc
parent2191d2082e2bf1f937ec4592b4f8c185f04f3fd6 (diff)
downloadchromium_src-3a3085e4167ef0a9e9b0b8c31930e2e61dc210fc.zip
chromium_src-3a3085e4167ef0a9e9b0b8c31930e2e61dc210fc.tar.gz
chromium_src-3a3085e4167ef0a9e9b0b8c31930e2e61dc210fc.tar.bz2
Revert 34146 - A place to store the pid>mach_port_t mapping.
Not yet for review. Landing to measure perf impact, will revert immediately. BUG=13156 TEST=unittests Review URL: http://codereview.chromium.org/460126 TBR=thakis@chromium.org Review URL: http://codereview.chromium.org/466088 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34147 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/mach_broker_mac_unittest.cc')
-rw-r--r--chrome/browser/mach_broker_mac_unittest.cc29
1 files changed, 0 insertions, 29 deletions
diff --git a/chrome/browser/mach_broker_mac_unittest.cc b/chrome/browser/mach_broker_mac_unittest.cc
deleted file mode 100644
index 745d0d7..0000000
--- a/chrome/browser/mach_broker_mac_unittest.cc
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/mach_broker_mac.h"
-
-#include "testing/gtest/include/gtest/gtest.h"
-
-class MachBrokerTest : public testing::Test {
- public:
- MachBroker broker_;
-};
-
-TEST_F(MachBrokerTest, Setter) {
- broker_.RegisterPid(1u, MachBroker::MachInfo().SetTask(2u).SetHost(3u));
-
- EXPECT_EQ(2u, broker_.MachTaskForPid(1));
- EXPECT_EQ(3u, broker_.MachHostForPid(1));
-
- EXPECT_EQ(0u, broker_.MachTaskForPid(2));
- EXPECT_EQ(0u, broker_.MachHostForPid(3));
-}
-
-TEST_F(MachBrokerTest, Invalidate) {
- broker_.RegisterPid(1u, MachBroker::MachInfo().SetTask(2).SetHost(3));
- broker_.Invalidate(1u);
- EXPECT_EQ(0u, broker_.MachTaskForPid(1));
- EXPECT_EQ(0u, broker_.MachHostForPid(1));
-}