transmission/tests/libtransmission
Charles Kerr f59118d1fe
feat: add torrent-get 'primary-mime-type' to RPC. (#1464)
* feat: add torrent-get 'primary-mime-type' to RPC.

This is a cheap way for RPC clients to know what type of content is in a
torrent. This info can be used to display the torrent, e.g. by using an
icon that corresponds to the mime type.

* use size_t for content byte count

Co-authored-by: Mike Gelfand <mikedld@users.noreply.github.com>

* explicit boolean expressions

Co-authored-by: Mike Gelfand <mikedld@users.noreply.github.com>

* use uint64_t for content byte counts

Co-authored-by: Mike Gelfand <mikedld@users.noreply.github.com>

* avoid unnecessary logic branches

Co-authored-by: Mike Gelfand <mikedld@users.noreply.github.com>

* explicit cast

Co-authored-by: Mike Gelfand <mikedld@users.noreply.github.com>

* refactor: add an autogenerated mime-type.h header

* chore: maybe fix the win32 FTBFS

* chore: add mime-types.[ch] to xcode

* Squashed commit of the following:

commit 4c7153fa48
Author: Mike Gelfand <mikedld@users.noreply.github.com>
Date:   Tue Oct 13 03:15:19 2020 +0300

    Remove autotools-based build system (#1465)

    * Support .git files (e.g. for worktrees, submodules)
    * Fix symlinks in source tarball, switch to TXZ, adjust non-release name
    * Remove autotools stuff

Co-authored-by: Mike Gelfand <mikedld@users.noreply.github.com>
2020-10-13 10:33:56 -05:00
..
.clang-tidy chore: fix clang-tidy-11 warnings (#1436) 2020-09-09 09:24:39 -05:00
CMakeLists.txt refactor: use GTest for running tests (#1383) 2020-08-11 13:11:55 -05:00
bitfield-test.cc refactor: use GTest for running tests (#1383) 2020-08-11 13:11:55 -05:00
blocklist-test.cc refactor: use GTest for running tests (#1383) 2020-08-11 13:11:55 -05:00
clients-test.cc refactor: work around msvc constxpr std::array bug (#1429) 2020-09-07 19:33:36 -05:00
crypto-test-ref.h refactor: use GTest for running tests (#1383) 2020-08-11 13:11:55 -05:00
crypto-test.cc refactor: work around msvc constxpr std::array bug (#1429) 2020-09-07 19:33:36 -05:00
error-test.cc refactor: use GTest for running tests (#1383) 2020-08-11 13:11:55 -05:00
file-test.cc refactor: don't store torrent hashes in QStrings (#1428) 2020-09-07 16:19:10 -05:00
getopt-test.cc refactor: work around msvc constxpr std::array bug (#1429) 2020-09-07 19:33:36 -05:00
history-test.cc refactor: use GTest for running tests (#1383) 2020-08-11 13:11:55 -05:00
json-test.cc refactor: use GTest for running tests (#1383) 2020-08-11 13:11:55 -05:00
magnet-test.cc refactor: work around msvc constxpr std::array bug (#1429) 2020-09-07 19:33:36 -05:00
makemeta-test.cc refactor: use GTest for running tests (#1383) 2020-08-11 13:11:55 -05:00
metainfo-test.cc refactor: work around msvc constxpr std::array bug (#1429) 2020-09-07 19:33:36 -05:00
move-test.cc refactor: use GTest for running tests (#1383) 2020-08-11 13:11:55 -05:00
peer-msgs-test.cc refactor: use GTest for running tests (#1383) 2020-08-11 13:11:55 -05:00
quark-test.cc refactor: use GTest for running tests (#1383) 2020-08-11 13:11:55 -05:00
rename-test.cc refactor: work around msvc constxpr std::array bug (#1429) 2020-09-07 19:33:36 -05:00
rpc-test.cc refactor: work around msvc constxpr std::array bug (#1429) 2020-09-07 19:33:36 -05:00
session-test.cc refactor: use GTest for running tests (#1383) 2020-08-11 13:11:55 -05:00
subprocess-test.cc refactor: use GTest for running tests (#1383) 2020-08-11 13:11:55 -05:00
subprocess-test.cmd refactor: use GTest for running tests (#1383) 2020-08-11 13:11:55 -05:00
test-fixtures.h refactor: use GTest for running tests (#1383) 2020-08-11 13:11:55 -05:00
utils-test.cc feat: add torrent-get 'primary-mime-type' to RPC. (#1464) 2020-10-13 10:33:56 -05:00
variant-test.cc chore: add precommit hook for testing code style (#1448) 2020-09-13 21:41:32 -05:00
watchdir-test.cc refactor: use GTest for running tests (#1383) 2020-08-11 13:11:55 -05:00