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

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

Issue 8585002: Give base::SharedMemory::CreateAnonymous an executable flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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.h" 9 #include "base/message_loop.h"
10 #include "base/process.h" 10 #include "base/process.h"
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 297
298 virtual void OnCompletedRequest(const net::URLRequestStatus& status, 298 virtual void OnCompletedRequest(const net::URLRequestStatus& status,
299 const std::string& security_info, 299 const std::string& security_info,
300 const base::Time& completion_time) { 300 const base::Time& completion_time) {
301 } 301 }
302 302
303 protected: 303 protected:
304 virtual void SetUp() { 304 virtual void SetUp() {
305 ResourceDispatcherTest::SetUp(); 305 ResourceDispatcherTest::SetUp();
306 shared_handle_.Delete(kShmemSegmentName); 306 shared_handle_.Delete(kShmemSegmentName);
307 EXPECT_TRUE(shared_handle_.CreateNamed(kShmemSegmentName, false, 100)); 307 EXPECT_TRUE(shared_handle_.CreateNamed(kShmemSegmentName, false, 100,
308 false));
308 } 309 }
309 310
310 virtual void TearDown() { 311 virtual void TearDown() {
311 shared_handle_.Close(); 312 shared_handle_.Close();
312 EXPECT_TRUE(shared_handle_.Delete(kShmemSegmentName)); 313 EXPECT_TRUE(shared_handle_.Delete(kShmemSegmentName));
313 ResourceDispatcherTest::TearDown(); 314 ResourceDispatcherTest::TearDown();
314 } 315 }
315 316
316 private: 317 private:
317 void set_defer_loading(bool defer) { 318 void set_defer_loading(bool defer) {
(...skipping 14 matching lines...) Expand all
332 333
333 ResourceLoaderBridge* bridge = CreateBridge(); 334 ResourceLoaderBridge* bridge = CreateBridge();
334 335
335 bridge->Start(this); 336 bridge->Start(this);
336 InitMessages(); 337 InitMessages();
337 338
338 // Dispatch deferred messages. 339 // Dispatch deferred messages.
339 message_loop.RunAllPending(); 340 message_loop.RunAllPending();
340 delete bridge; 341 delete bridge;
341 } 342 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698