diff options
author | kushi.p@gmail.com <kushi.p@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-13 22:42:41 +0000 |
---|---|---|
committer | kushi.p@gmail.com <kushi.p@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-13 22:42:41 +0000 |
commit | c9e0c73315f506226e07bd53a1a43162c79624f1 (patch) | |
tree | 011aee04ff2618c5c179c9873e11cb5152036acc /ipc/ipc_sync_channel_unittest.cc | |
parent | 9f44a551fa56aa3f712cd128604f10a7f358acf1 (diff) | |
download | chromium_src-c9e0c73315f506226e07bd53a1a43162c79624f1.zip chromium_src-c9e0c73315f506226e07bd53a1a43162c79624f1.tar.gz chromium_src-c9e0c73315f506226e07bd53a1a43162c79624f1.tar.bz2 |
Removing 'using namespace' style violations in src/ipc/
BUG=82078
TEST=None
Review URL: http://codereview.chromium.org/6973055
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85340 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc/ipc_sync_channel_unittest.cc')
-rw-r--r-- | ipc/ipc_sync_channel_unittest.cc | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/ipc/ipc_sync_channel_unittest.cc b/ipc/ipc_sync_channel_unittest.cc index fe17c14..6979cc6 100644 --- a/ipc/ipc_sync_channel_unittest.cc +++ b/ipc/ipc_sync_channel_unittest.cc @@ -24,9 +24,10 @@ #include "ipc/ipc_sync_message_unittest.h" #include "testing/gtest/include/gtest/gtest.h" -using namespace IPC; using base::WaitableEvent; +namespace IPC { + namespace { // Base class for a "process" with listener and IPC threads. @@ -127,7 +128,7 @@ class Worker : public Channel::Listener, public Message::Sender { void Done() { done_->Signal(); } protected: - IPC::SyncChannel* channel() { return channel_.get(); } + SyncChannel* channel() { return channel_.get(); } // Functions for dervied classes to implement if they wish. virtual void Run() { } virtual void OnAnswer(int* answer) { NOTREACHED(); } @@ -460,7 +461,7 @@ TEST_F(IPCSyncChannelTest, Unblock) { //----------------------------------------------------------------------------- -// Tests that the the IPC::SyncChannel object can be deleted during a Send. +// Tests that the the SyncChannel object can be deleted during a Send. TEST_F(IPCSyncChannelTest, ChannelDeleteDuringSend) { Unblock(false, false, true); Unblock(false, true, true); @@ -1064,7 +1065,7 @@ TEST_F(IPCSyncChannelTest, DoneEventRace) { namespace { -class TestSyncMessageFilter : public IPC::SyncMessageFilter { +class TestSyncMessageFilter : public SyncMessageFilter { public: TestSyncMessageFilter(base::WaitableEvent* shutdown_event, Worker* worker) : SyncMessageFilter(shutdown_event), @@ -1178,7 +1179,7 @@ class RestrictedDispatchServer : public Worker { void OnDoPing(int ping) { // Send an asynchronous message that unblocks the caller. - IPC::Message* msg = new SyncChannelTestMsg_Ping(ping); + Message* msg = new SyncChannelTestMsg_Ping(ping); msg->set_unblock(true); Send(msg); // Signal the event after the message has been sent on the channel, on the @@ -1315,3 +1316,5 @@ TEST_F(IPCSyncChannelTest, RestrictedDispatch) { RunTest(workers); EXPECT_EQ(3, success); } + +} // namespace IPC |