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

Side by Side Diff: webkit/tools/test_shell/test_shell_mac.mm

Issue 6602049: Pure pedantry: Replace all ".size() == 0" with ".empty()". (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 <ApplicationServices/ApplicationServices.h> 5 #include <ApplicationServices/ApplicationServices.h>
6 #import <Cocoa/Cocoa.h> 6 #import <Cocoa/Cocoa.h>
7 #import <objc/objc-runtime.h> 7 #import <objc/objc-runtime.h>
8 #include <sys/stat.h> 8 #include <sys/stat.h>
9 9
10 #include "webkit/tools/test_shell/test_shell.h" 10 #include "webkit/tools/test_shell/test_shell.h"
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 // static 181 // static
182 void TestShell::PlatformShutdown() { 182 void TestShell::PlatformShutdown() {
183 // for each window in the window list, release it and destroy its shell 183 // for each window in the window list, release it and destroy its shell
184 for (WindowList::iterator it = TestShell::windowList()->begin(); 184 for (WindowList::iterator it = TestShell::windowList()->begin();
185 it != TestShell::windowList()->end(); 185 it != TestShell::windowList()->end();
186 ++it) { 186 ++it) {
187 DestroyAssociatedShell(*it); 187 DestroyAssociatedShell(*it);
188 [*it release]; 188 [*it release];
189 } 189 }
190 // assert if we have anything left over, that would be bad. 190 // assert if we have anything left over, that would be bad.
191 DCHECK(window_map_.Get().size() == 0); 191 DCHECK(window_map_.Get().empty());
192 192
193 // Dump the pasteboards we built up. 193 // Dump the pasteboards we built up.
194 [DumpRenderTreePasteboard releaseLocalPasteboards]; 194 [DumpRenderTreePasteboard releaseLocalPasteboards];
195 } 195 }
196 196
197 // static 197 // static
198 void TestShell::InitializeTestShell(bool layout_test_mode, 198 void TestShell::InitializeTestShell(bool layout_test_mode,
199 bool allow_external_pages) { 199 bool allow_external_pages) {
200 // This should move to a per-process platform-specific initialization function 200 // This should move to a per-process platform-specific initialization function
201 // when one exists. 201 // when one exists.
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 return false; 677 return false;
678 } 678 }
679 679
680 void DidLoadPlugin(const std::string& filename) { 680 void DidLoadPlugin(const std::string& filename) {
681 } 681 }
682 682
683 void DidUnloadPlugin(const std::string& filename) { 683 void DidUnloadPlugin(const std::string& filename) {
684 } 684 }
685 685
686 } // namespace webkit_glue 686 } // namespace webkit_glue
OLDNEW
« o3d/utils/cross/text_reader.cc ('K') | « webkit/tools/test_shell/accessibility_ui_element.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698