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

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

Issue 6300001: Clang: enable -Wbool-conversions and -Wunused-variables on Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, undo indent Created 9 years, 11 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
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/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/process.h" 9 #include "base/process.h"
10 #include "base/process_util.h" 10 #include "base/process_util.h"
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 286
287 virtual void OnCompletedRequest(const net::URLRequestStatus& status, 287 virtual void OnCompletedRequest(const net::URLRequestStatus& status,
288 const std::string& security_info, 288 const std::string& security_info,
289 const base::Time& completion_time) { 289 const base::Time& completion_time) {
290 } 290 }
291 291
292 protected: 292 protected:
293 virtual void SetUp() { 293 virtual void SetUp() {
294 ResourceDispatcherTest::SetUp(); 294 ResourceDispatcherTest::SetUp();
295 shared_handle_.Delete(kShmemSegmentName); 295 shared_handle_.Delete(kShmemSegmentName);
296 EXPECT_EQ(true, shared_handle_.CreateNamed(kShmemSegmentName, false, 100)); 296 EXPECT_TRUE(shared_handle_.CreateNamed(kShmemSegmentName, false, 100));
297 } 297 }
298 298
299 virtual void TearDown() { 299 virtual void TearDown() {
300 shared_handle_.Close(); 300 shared_handle_.Close();
301 EXPECT_TRUE(shared_handle_.Delete(kShmemSegmentName)); 301 EXPECT_TRUE(shared_handle_.Delete(kShmemSegmentName));
302 ResourceDispatcherTest::TearDown(); 302 ResourceDispatcherTest::TearDown();
303 } 303 }
304 304
305 private: 305 private:
306 void set_defer_loading(bool defer) { 306 void set_defer_loading(bool defer) {
(...skipping 14 matching lines...) Expand all
321 321
322 ResourceLoaderBridge* bridge = CreateBridge(); 322 ResourceLoaderBridge* bridge = CreateBridge();
323 323
324 bridge->Start(this); 324 bridge->Start(this);
325 InitMessages(); 325 InitMessages();
326 326
327 // Dispatch deferred messages. 327 // Dispatch deferred messages.
328 message_loop.RunAllPending(); 328 message_loop.RunAllPending();
329 delete bridge; 329 delete bridge;
330 } 330 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/tabs/dock_info_unittest.cc ('k') | chrome/renderer/spellchecker/spellcheck_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698