mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
using from .h to .cc
This commit is contained in:
parent
1785e39d4b
commit
d190abf2e2
@ -14,6 +14,10 @@
|
|||||||
|
|
||||||
#include "check_tag.h" // NOLINT(build/include)
|
#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,
|
void CheckShortField(TiffApi& api, sapi::v::RemotePtr& tif, const ttag_t field,
|
||||||
const uint16_t value) {
|
const uint16_t value) {
|
||||||
sapi::v::UShort tmp(123);
|
sapi::v::UShort tmp(123);
|
||||||
|
@ -19,6 +19,11 @@
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
|
using ::sapi::IsOk;
|
||||||
|
using ::testing::Eq;
|
||||||
|
using ::testing::IsTrue;
|
||||||
|
using ::testing::NotNull;
|
||||||
|
|
||||||
constexpr unsigned kTileBufferSize = 256;
|
constexpr unsigned kTileBufferSize = 256;
|
||||||
constexpr uint16_t kWidth = 1;
|
constexpr uint16_t kWidth = 1;
|
||||||
constexpr uint16_t kBps = 8;
|
constexpr uint16_t kBps = 8;
|
||||||
|
@ -22,11 +22,4 @@
|
|||||||
#include "sandboxed_api/sandbox2/util/temp_file.h"
|
#include "sandboxed_api/sandbox2/util/temp_file.h"
|
||||||
#include "sandboxed_api/util/status_matchers.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);
|
std::string GetFilePath(const std::string& filename);
|
||||||
|
@ -19,6 +19,11 @@
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
|
using ::sapi::IsOk;
|
||||||
|
using ::testing::Ne;
|
||||||
|
using ::testing::IsTrue;
|
||||||
|
using ::testing::NotNull;
|
||||||
|
|
||||||
struct LongTag {
|
struct LongTag {
|
||||||
ttag_t tag;
|
ttag_t tag;
|
||||||
short count;
|
short count;
|
||||||
|
@ -15,10 +15,15 @@
|
|||||||
#include <array>
|
#include <array>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|
||||||
#include "gtest/gtest.h"
|
|
||||||
#include "helper.h" // NOLINT(build/include)
|
#include "helper.h" // NOLINT(build/include)
|
||||||
#include "tiffio.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 {
|
namespace {
|
||||||
|
|
||||||
struct ChannelLimits {
|
struct ChannelLimits {
|
||||||
|
@ -20,6 +20,11 @@
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
|
using ::sapi::IsOk;
|
||||||
|
using ::testing::Ne;
|
||||||
|
using ::testing::IsTrue;
|
||||||
|
using ::testing::NotNull;
|
||||||
|
|
||||||
constexpr unsigned kSamplePerPixel = 3;
|
constexpr unsigned kSamplePerPixel = 3;
|
||||||
constexpr uint16_t kWidth = 1;
|
constexpr uint16_t kWidth = 1;
|
||||||
constexpr uint16_t kLength = 1;
|
constexpr uint16_t kLength = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user