using from .h to .cc

This commit is contained in:
Alexandra Latysheva 2020-10-11 09:40:47 +00:00
parent 1785e39d4b
commit d190abf2e2
6 changed files with 25 additions and 8 deletions

View File

@ -14,6 +14,10 @@
#include "check_tag.h" // NOLINT(build/include)
using ::sapi::IsOk;
using ::testing::Eq;
using ::testing::IsTrue;
void CheckShortField(TiffApi& api, sapi::v::RemotePtr& tif, const ttag_t field,
const uint16_t value) {
sapi::v::UShort tmp(123);

View File

@ -19,6 +19,11 @@
namespace {
using ::sapi::IsOk;
using ::testing::Eq;
using ::testing::IsTrue;
using ::testing::NotNull;
constexpr unsigned kTileBufferSize = 256;
constexpr uint16_t kWidth = 1;
constexpr uint16_t kBps = 8;

View File

@ -22,11 +22,4 @@
#include "sandboxed_api/sandbox2/util/temp_file.h"
#include "sandboxed_api/util/status_matchers.h"
using ::sapi::IsOk;
using ::testing::Eq;
using ::testing::IsFalse;
using ::testing::IsTrue;
using ::testing::Ne;
using ::testing::NotNull;
std::string GetFilePath(const std::string& filename);

View File

@ -19,6 +19,11 @@
namespace {
using ::sapi::IsOk;
using ::testing::Ne;
using ::testing::IsTrue;
using ::testing::NotNull;
struct LongTag {
ttag_t tag;
short count;

View File

@ -15,10 +15,15 @@
#include <array>
#include <cstring>
#include "gtest/gtest.h"
#include "helper.h" // NOLINT(build/include)
#include "tiffio.h" // NOLINT(build/include)
using ::sapi::IsOk;
using ::testing::Eq;
using ::testing::IsFalse;
using ::testing::IsTrue;
using ::testing::NotNull;
namespace {
struct ChannelLimits {

View File

@ -20,6 +20,11 @@
namespace {
using ::sapi::IsOk;
using ::testing::Ne;
using ::testing::IsTrue;
using ::testing::NotNull;
constexpr unsigned kSamplePerPixel = 3;
constexpr uint16_t kWidth = 1;
constexpr uint16_t kLength = 1;