summaryrefslogtreecommitdiff
path: root/tests/unit/unittest/mocksqlitewritestatement.h
diff options
context:
space:
mode:
authorMarco Bubke <marco.bubke@qt.io>2017-08-21 12:00:27 +0200
committerMarco Bubke <marco.bubke@qt.io>2017-08-29 16:37:24 +0000
commitf49a1d721c8be7d49bc0831ffa7316f2ec4f383f (patch)
tree8fdb264206b2d5d58f16185e616bc56a7eea5e09 /tests/unit/unittest/mocksqlitewritestatement.h
parent81d43b8a11e39ca7165213945b0bb0e6ef5d7980 (diff)
downloadqt-creator-f49a1d721c8be7d49bc0831ffa7316f2ec4f383f.tar.gz
Clang: Add symbol storage
Extend file path cache to 64 bit integer. Change-Id: I5627f13d59a3214f389087038482cbcc8d0eb484 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'tests/unit/unittest/mocksqlitewritestatement.h')
-rw-r--r--tests/unit/unittest/mocksqlitewritestatement.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/tests/unit/unittest/mocksqlitewritestatement.h b/tests/unit/unittest/mocksqlitewritestatement.h
new file mode 100644
index 0000000000..98ea4e7e24
--- /dev/null
+++ b/tests/unit/unittest/mocksqlitewritestatement.h
@@ -0,0 +1,59 @@
+/****************************************************************************
+**
+** Copyright (C) 2017 The Qt Company Ltd.
+** Contact: https://www.qt.io/licensing/
+**
+** This file is part of Qt Creator.
+**
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and The Qt Company. For licensing terms
+** and conditions see https://www.qt.io/terms-conditions. For further
+** information use the contact form at https://www.qt.io/contact-us.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3 as published by the Free Software
+** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
+** included in the packaging of this file. Please review the following
+** information to ensure the GNU General Public License requirements will
+** be met: https://www.gnu.org/licenses/gpl-3.0.html.
+**
+****************************************************************************/
+
+#pragma once
+
+#include "mocksqlitedatabase.h"
+
+#include <utils/smallstring.h>
+
+class MockSqliteWriteStatement
+{
+public:
+ MockSqliteWriteStatement() = default;
+ MockSqliteWriteStatement(Utils::SmallStringView sqlStatement, MockSqliteDatabase &)
+ : sqlStatement(sqlStatement)
+ {}
+
+ MOCK_METHOD0(execute,
+ void ());
+
+ MOCK_METHOD2(bind,
+ void (int index, Utils::SmallStringView value));
+
+ MOCK_METHOD2(bindValues,
+ void (Utils::SmallStringView, Utils::SmallStringView));
+
+ MOCK_METHOD3(write,
+ void (uint, Utils::SmallStringView, Utils::SmallStringView));
+
+ MOCK_METHOD4(write,
+ void (uint, uint, uint, uint));
+
+ MOCK_METHOD2(write,
+ void (uint, Utils::SmallStringView));
+
+ Utils::SmallString sqlStatement;
+};