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

Side by Side Diff: content/child/resource_dispatcher_unittest.cc

Issue 186473002: Deprecate named base::SharedMemory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/service_process_util.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <string> 5 #include <string>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/process/process.h" 10 #include "base/process/process.h"
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 bool stale_copy_in_cache, 300 bool stale_copy_in_cache,
301 const std::string& security_info, 301 const std::string& security_info,
302 const base::TimeTicks& completion_time, 302 const base::TimeTicks& completion_time,
303 int64 total_transfer_size) OVERRIDE { 303 int64 total_transfer_size) OVERRIDE {
304 } 304 }
305 305
306 protected: 306 protected:
307 virtual void SetUp() OVERRIDE { 307 virtual void SetUp() OVERRIDE {
308 ResourceDispatcherTest::SetUp(); 308 ResourceDispatcherTest::SetUp();
309 shared_handle_.Delete(kShmemSegmentName); 309 shared_handle_.Delete(kShmemSegmentName);
310 EXPECT_TRUE(shared_handle_.CreateNamed(kShmemSegmentName, false, 100)); 310 // TODO(viettrungluu): Named shared memory is deprecated (crbug.com/345734).
311 // (I don't think we even need it here.)
312 EXPECT_TRUE(shared_handle_.CreateNamedDeprecated(kShmemSegmentName, false,
313 100));
311 } 314 }
312 315
313 virtual void TearDown() OVERRIDE { 316 virtual void TearDown() OVERRIDE {
314 shared_handle_.Close(); 317 shared_handle_.Close();
315 EXPECT_TRUE(shared_handle_.Delete(kShmemSegmentName)); 318 EXPECT_TRUE(shared_handle_.Delete(kShmemSegmentName));
316 ResourceDispatcherTest::TearDown(); 319 ResourceDispatcherTest::TearDown();
317 } 320 }
318 321
319 private: 322 private:
320 void set_defer_loading(bool defer) { 323 void set_defer_loading(bool defer) {
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 response_head.error_code = net::OK; 440 response_head.error_code = net::OK;
438 441
439 PerformTest(response_head); 442 PerformTest(response_head);
440 443
441 EXPECT_EQ(base::TimeTicks(), response_info().load_timing.request_start); 444 EXPECT_EQ(base::TimeTicks(), response_info().load_timing.request_start);
442 EXPECT_EQ(base::TimeTicks(), 445 EXPECT_EQ(base::TimeTicks(),
443 response_info().load_timing.connect_timing.dns_start); 446 response_info().load_timing.connect_timing.dns_start);
444 } 447 }
445 448
446 } // namespace content 449 } // namespace content
OLDNEW
« no previous file with comments | « chrome/common/service_process_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698