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

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

Issue 1088993003: Replace OVERRIDE->override and FINAL->final since we now require C++11. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 4752 matching lines...) Expand 10 before | Expand all | Expand 10 after
4763 4763
4764 4764
4765 // Multithreaded tests of JSON debugger protocol 4765 // Multithreaded tests of JSON debugger protocol
4766 4766
4767 // Support classes 4767 // Support classes
4768 4768
4769 // Provides synchronization between N threads, where N is a template parameter. 4769 // Provides synchronization between N threads, where N is a template parameter.
4770 // The Wait() call blocks a thread until it is called for the Nth time, then all 4770 // The Wait() call blocks a thread until it is called for the Nth time, then all
4771 // calls return. Each ThreadBarrier object can only be used once. 4771 // calls return. Each ThreadBarrier object can only be used once.
4772 template <int N> 4772 template <int N>
4773 class ThreadBarrier FINAL { 4773 class ThreadBarrier final {
4774 public: 4774 public:
4775 ThreadBarrier() : num_blocked_(0) {} 4775 ThreadBarrier() : num_blocked_(0) {}
4776 4776
4777 ~ThreadBarrier() { 4777 ~ThreadBarrier() {
4778 LockGuard<Mutex> lock_guard(&mutex_); 4778 LockGuard<Mutex> lock_guard(&mutex_);
4779 if (num_blocked_ != 0) { 4779 if (num_blocked_ != 0) {
4780 CHECK_EQ(N, num_blocked_); 4780 CHECK_EQ(N, num_blocked_);
4781 } 4781 }
4782 } 4782 }
4783 4783
(...skipping 2805 matching lines...) Expand 10 before | Expand all | Expand 10 after
7589 "let y = 2; \n" 7589 "let y = 2; \n"
7590 "debugger; \n" 7590 "debugger; \n"
7591 "x * y", 7591 "x * y",
7592 30); 7592 30);
7593 ExpectInt32( 7593 ExpectInt32(
7594 "x = 1; y = 2; \n" 7594 "x = 1; y = 2; \n"
7595 "debugger;" 7595 "debugger;"
7596 "x * y", 7596 "x * y",
7597 30); 7597 30);
7598 } 7598 }
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-run-stubs.cc ('k') | test/unittests/base/platform/condition-variable-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698