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

Side by Side Diff: test/cctest/test-debug.cc

Issue 7860011: Rename SmartPointer to SmartArrayPointer. (Closed) Base URL: git://github.com/v8/v8.git@bleeding_edge
Patch Set: rebase it again to get more fixes Created 9 years, 3 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
« no previous file with comments | « src/x64/lithium-x64.cc ('k') | test/cctest/test-func-name-inference.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 5899 matching lines...) Expand 10 before | Expand all | Expand 10 after
5910 delete server_; 5910 delete server_;
5911 delete listening_; 5911 delete listening_;
5912 } 5912 }
5913 5913
5914 void Run(); 5914 void Run();
5915 void WaitForListening() { listening_->Wait(); } 5915 void WaitForListening() { listening_->Wait(); }
5916 char* body() { return *body_; } 5916 char* body() { return *body_; }
5917 5917
5918 private: 5918 private:
5919 int port_; 5919 int port_;
5920 i::SmartPointer<char> body_; 5920 i::SmartArrayPointer<char> body_;
5921 i::Socket* server_; // Server socket used for bind/accept. 5921 i::Socket* server_; // Server socket used for bind/accept.
5922 i::Socket* client_; // Single client connection used by the test. 5922 i::Socket* client_; // Single client connection used by the test.
5923 i::Semaphore* listening_; // Signalled when the server is in listen mode. 5923 i::Semaphore* listening_; // Signalled when the server is in listen mode.
5924 }; 5924 };
5925 5925
5926 5926
5927 void DebuggerAgentProtocolServerThread::Run() { 5927 void DebuggerAgentProtocolServerThread::Run() {
5928 bool ok; 5928 bool ok;
5929 5929
5930 // Create the server socket and bind it to the requested port. 5930 // Create the server socket and bind it to the requested port.
(...skipping 1365 matching lines...) Expand 10 before | Expand all | Expand 10 after
7296 TestDebugBreakInLoop("for (;;) {", loop_bodies, "}"); 7296 TestDebugBreakInLoop("for (;;) {", loop_bodies, "}");
7297 TestDebugBreakInLoop("for (;a == 1;) {", loop_bodies, "}"); 7297 TestDebugBreakInLoop("for (;a == 1;) {", loop_bodies, "}");
7298 7298
7299 // Get rid of the debug event listener. 7299 // Get rid of the debug event listener.
7300 v8::Debug::SetDebugEventListener(NULL); 7300 v8::Debug::SetDebugEventListener(NULL);
7301 CheckDebuggerUnloaded(); 7301 CheckDebuggerUnloaded();
7302 } 7302 }
7303 7303
7304 7304
7305 #endif // ENABLE_DEBUGGER_SUPPORT 7305 #endif // ENABLE_DEBUGGER_SUPPORT
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.cc ('k') | test/cctest/test-func-name-inference.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698