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

Unified Diff: content/child/resource_dispatcher_unittest.cc

Issue 189843009: Remove DeferredResourceLoadingTest's use of *named* shared memory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: oops Created 6 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/resource_dispatcher_unittest.cc
diff --git a/content/child/resource_dispatcher_unittest.cc b/content/child/resource_dispatcher_unittest.cc
index c32bf8fef4c988af6d9a953612fa50207581e5ac..da0ef2a5d90d21374b0a37ffcdf0a40a55c48d92 100644
--- a/content/child/resource_dispatcher_unittest.cc
+++ b/content/child/resource_dispatcher_unittest.cc
@@ -33,8 +33,6 @@ static const char test_page_contents[] =
"<html><head><title>Google</title></head><body><h1>Google</h1></body></html>";
static const uint32 test_page_contents_len = arraysize(test_page_contents) - 1;
-static const char kShmemSegmentName[] = "DeferredResourceLoaderTest";
-
// Listens for request response data and stores it so that it can be compared
// to the reference data.
class TestRequestCallback : public ResourceLoaderBridge::Peer {
@@ -308,16 +306,11 @@ class DeferredResourceLoadingTest : public ResourceDispatcherTest,
protected:
virtual void SetUp() OVERRIDE {
ResourceDispatcherTest::SetUp();
- shared_handle_.Delete(kShmemSegmentName);
- // TODO(viettrungluu): Named shared memory is deprecated (crbug.com/345734).
- // (I don't think we even need it here.)
- EXPECT_TRUE(shared_handle_.CreateNamedDeprecated(kShmemSegmentName, false,
- 100));
+ EXPECT_TRUE(shared_handle_.CreateAnonymous(100));
}
virtual void TearDown() OVERRIDE {
shared_handle_.Close();
- EXPECT_TRUE(shared_handle_.Delete(kShmemSegmentName));
ResourceDispatcherTest::TearDown();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698