OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "webkit/tools/test_shell/test_shell_devtools_callargs.h" | 5 #include "webkit/tools/test_shell/test_shell_devtools_callargs.h" |
6 | 6 |
| 7 #include "base/logging.h" |
| 8 |
7 // static | 9 // static |
8 int TestShellDevToolsCallArgs::calls_count_ = 0; | 10 int TestShellDevToolsCallArgs::calls_count_ = 0; |
9 | 11 |
| 12 TestShellDevToolsCallArgs::TestShellDevToolsCallArgs( |
| 13 const WebKit::WebString& data) |
| 14 : data_(data) { |
| 15 ++calls_count_; |
| 16 } |
| 17 |
| 18 TestShellDevToolsCallArgs::TestShellDevToolsCallArgs( |
| 19 const TestShellDevToolsCallArgs& args) |
| 20 : data_(args.data_) { |
| 21 ++calls_count_; |
| 22 } |
| 23 |
| 24 TestShellDevToolsCallArgs::~TestShellDevToolsCallArgs() { |
| 25 --calls_count_; |
| 26 DCHECK(calls_count_ >= 0); |
| 27 } |
OLD | NEW |