diff options
author | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-03 15:01:12 +0000 |
---|---|---|
committer | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-03 15:01:12 +0000 |
commit | 52a261f59b20e89f8c5936bce642362f8e367b57 (patch) | |
tree | fcc7b3c100caaf43848cd9a241beafc883f93b7d /base/shared_memory_unittest.cc | |
parent | 7d926f9072ac496db6df715cc6a6bd5d3f9bd011 (diff) | |
download | chromium_src-52a261f59b20e89f8c5936bce642362f8e367b57.zip chromium_src-52a261f59b20e89f8c5936bce642362f8e367b57.tar.gz chromium_src-52a261f59b20e89f8c5936bce642362f8e367b57.tar.bz2 |
NO CODE CHANGE (except one global std::wstring changed to const wchar_t* const per style compliance).
Preliminary work to enforce new PRESUBMIT.py rules:
- <=80 cols
- no trailing whitespaces
- svn:eol-style=LF
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10791 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/shared_memory_unittest.cc')
-rw-r--r-- | base/shared_memory_unittest.cc | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/base/shared_memory_unittest.cc b/base/shared_memory_unittest.cc index 4b1e088..75f3ae6 100644 --- a/base/shared_memory_unittest.cc +++ b/base/shared_memory_unittest.cc @@ -27,7 +27,7 @@ class MultipleThreadMain : public PlatformThread::Delegate { static void CleanUp() { SharedMemory memory; - memory.Delete(test_name_); + memory.Delete(s_test_name_); } // PlatformThread::Delegate interface. @@ -35,7 +35,7 @@ class MultipleThreadMain : public PlatformThread::Delegate { ScopedNSAutoreleasePool pool; // noop if not OSX const int kDataSize = 1024; SharedMemory memory; - bool rv = memory.Create(test_name_, false, true, kDataSize); + bool rv = memory.Create(s_test_name_, false, true, kDataSize); EXPECT_TRUE(rv); rv = memory.Map(kDataSize); EXPECT_TRUE(rv); @@ -54,12 +54,13 @@ class MultipleThreadMain : public PlatformThread::Delegate { private: int16 id_; - static const std::wstring test_name_; + static const wchar_t* const s_test_name_; DISALLOW_COPY_AND_ASSIGN(MultipleThreadMain); }; -const std::wstring MultipleThreadMain::test_name_ = L"SharedMemoryOpenThreadTest"; +const wchar_t* const MultipleThreadMain::s_test_name_ = + L"SharedMemoryOpenThreadTest"; // TODO(port): // This test requires the ability to pass file descriptors between processes. @@ -281,7 +282,7 @@ class SharedMemoryProcessTest : public MultiProcessTest { static void CleanUp() { SharedMemory memory; - memory.Delete(test_name_); + memory.Delete(s_test_name_); } static int TaskTestMain() { @@ -289,7 +290,7 @@ class SharedMemoryProcessTest : public MultiProcessTest { ScopedNSAutoreleasePool pool; // noop if not OSX const int kDataSize = 1024; SharedMemory memory; - bool rv = memory.Create(test_name_, false, true, kDataSize); + bool rv = memory.Create(s_test_name_, false, true, kDataSize); EXPECT_TRUE(rv); if (rv != true) errors++; @@ -314,10 +315,10 @@ class SharedMemoryProcessTest : public MultiProcessTest { } private: - static const std::wstring test_name_; + static const wchar_t* const s_test_name_; }; -const std::wstring SharedMemoryProcessTest::test_name_ = L"MPMem"; +const const wchar_t* const SharedMemoryProcessTest::s_test_name_ = L"MPMem"; TEST_F(SharedMemoryProcessTest, Tasks) { |