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

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

Issue 543154: Fix lint errors (Closed)
Patch Set: Created 10 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
« no previous file with comments | « no previous file | 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 2007-2008 the V8 project authors. All rights reserved. 1 // Copyright 2007-2008 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 2297 matching lines...) Expand 10 before | Expand all | Expand 10 after
2308 " \"global\":true," 2308 " \"global\":true,"
2309 " \"expression\":\"239 + 566\",\"disable_break\":true" 2309 " \"expression\":\"239 + 566\",\"disable_break\":true"
2310 "}}"; 2310 "}}";
2311 2311
2312 v8::Debug::SendCommand(buffer, AsciiToUtf16(command_113, buffer)); 2312 v8::Debug::SendCommand(buffer, AsciiToUtf16(command_113, buffer));
2313 2313
2314 v8::Debug::ProcessDebugMessages(); 2314 v8::Debug::ProcessDebugMessages();
2315 2315
2316 CHECK_EQ(3, process_debug_messages_data.counter); 2316 CHECK_EQ(3, process_debug_messages_data.counter);
2317 2317
2318 CHECK(strcmp("Pinguin", process_debug_messages_data.results[0].buffer) == 0); 2318 CHECK_EQ(strcmp("Pinguin", process_debug_messages_data.results[0].buffer), 0);
2319 CHECK(strcmp("Capybara", process_debug_messages_data.results[1].buffer) == 0); 2319 CHECK_EQ(strcmp("Capybara", process_debug_messages_data.results[1].buffer),
2320 CHECK(strcmp("805", process_debug_messages_data.results[2].buffer) == 0); 2320 0);
2321 CHECK_EQ(strcmp("805", process_debug_messages_data.results[2].buffer), 0);
2321 2322
2322 v8::Debug::SetMessageHandler(NULL); 2323 v8::Debug::SetMessageHandler(NULL);
2323 v8::Debug::SetDebugEventListener(NULL); 2324 v8::Debug::SetDebugEventListener(NULL);
2324 CheckDebuggerUnloaded(); 2325 CheckDebuggerUnloaded();
2325 } 2326 }
2326 2327
2327 2328
2328 // Simple test of the stepping mechanism using only store ICs. 2329 // Simple test of the stepping mechanism using only store ICs.
2329 TEST(DebugStepLinear) { 2330 TEST(DebugStepLinear) {
2330 v8::HandleScope scope; 2331 v8::HandleScope scope;
(...skipping 1926 matching lines...) Expand 10 before | Expand all | Expand 10 after
4257 * breakpoint is hit when enabled, and missed when disabled. 4258 * breakpoint is hit when enabled, and missed when disabled.
4258 */ 4259 */
4259 4260
4260 class BreakpointsV8Thread : public v8::internal::Thread { 4261 class BreakpointsV8Thread : public v8::internal::Thread {
4261 public: 4262 public:
4262 void Run(); 4263 void Run();
4263 }; 4264 };
4264 4265
4265 class BreakpointsDebuggerThread : public v8::internal::Thread { 4266 class BreakpointsDebuggerThread : public v8::internal::Thread {
4266 public: 4267 public:
4267 BreakpointsDebuggerThread(bool global_evaluate) 4268 explicit BreakpointsDebuggerThread(bool global_evaluate)
4268 : global_evaluate_(global_evaluate) {} 4269 : global_evaluate_(global_evaluate) {}
4269 void Run(); 4270 void Run();
4270 4271
4271 private: 4272 private:
4272 bool global_evaluate_; 4273 bool global_evaluate_;
4273 }; 4274 };
4274 4275
4275 4276
4276 Barriers* breakpoints_barriers; 4277 Barriers* breakpoints_barriers;
4277 int break_event_breakpoint_id; 4278 int break_event_breakpoint_id;
(...skipping 1794 matching lines...) Expand 10 before | Expand all | Expand 10 after
6072 6073
6073 break_point_hit_count = 0; 6074 break_point_hit_count = 0;
6074 foo->Call(env->Global(), 0, NULL); 6075 foo->Call(env->Global(), 0, NULL);
6075 CHECK_EQ(1, break_point_hit_count); 6076 CHECK_EQ(1, break_point_hit_count);
6076 6077
6077 v8::Debug::SetDebugEventListener(NULL); 6078 v8::Debug::SetDebugEventListener(NULL);
6078 debugee_context = v8::Handle<v8::Context>(); 6079 debugee_context = v8::Handle<v8::Context>();
6079 debugger_context = v8::Handle<v8::Context>(); 6080 debugger_context = v8::Handle<v8::Context>();
6080 CheckDebuggerUnloaded(); 6081 CheckDebuggerUnloaded();
6081 } 6082 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698