summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/test_shell_devtools_callargs.cc
blob: bcdf4b5c5ace41b13fe9c2c0716f7d17c95b1110 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "webkit/tools/test_shell/test_shell_devtools_callargs.h"

#include "base/logging.h"

// static
int TestShellDevToolsCallArgs::calls_count_ = 0;

TestShellDevToolsCallArgs::TestShellDevToolsCallArgs(
    const WebKit::WebString& data)
    : data_(data) {
  ++calls_count_;
}

TestShellDevToolsCallArgs::TestShellDevToolsCallArgs(
    const TestShellDevToolsCallArgs& args)
    : data_(args.data_) {
  ++calls_count_;
}

TestShellDevToolsCallArgs::~TestShellDevToolsCallArgs() {
  --calls_count_;
  DCHECK(calls_count_ >= 0);
}