Просмотр исходного кода

Remove FileTest::SetIgnoreUnusedAttributes.

This is no longer used.

Change-Id: I74bf2ffff5260cdbf1356e8628fa4f9a667217e8
Reviewed-on: https://boringssl-review.googlesource.com/16504
Reviewed-by: Adam Langley <agl@google.com>
kris/onging/CECPQ3_patch15
David Benjamin 7 лет назад
committed by Adam Langley
Родитель
Сommit
dfef2081f3
2 измененных файлов: 2 добавлений и 10 удалений
  1. +2
    -6
      crypto/test/file_test.cc
  2. +0
    -4
      crypto/test/file_test.h

+ 2
- 6
crypto/test/file_test.cc Просмотреть файл

@@ -81,13 +81,13 @@ static std::pair<std::string, std::string> ParseKeyValue(const char *str, const

FileTest::ReadResult FileTest::ReadNext() {
// If the previous test had unused attributes or instructions, it is an error.
if (!unused_attributes_.empty() && !ignore_unused_attributes_) {
if (!unused_attributes_.empty()) {
for (const std::string &key : unused_attributes_) {
PrintLine("Unused attribute: %s", key.c_str());
}
return kReadError;
}
if (!unused_instructions_.empty() && !ignore_unused_attributes_) {
if (!unused_instructions_.empty()) {
for (const std::string &key : unused_instructions_) {
PrintLine("Unused instruction: %s", key.c_str());
}
@@ -372,10 +372,6 @@ void FileTest::InjectInstruction(const std::string &key,
instructions_[key] = value;
}

void FileTest::SetIgnoreUnusedAttributes(bool ignore) {
ignore_unused_attributes_ = ignore;
}

int FileTestMainSilent(FileTestFunc run_test, void *arg, const char *path) {
FileTest t(path);
if (!t.is_open()) {


+ 0
- 4
crypto/test/file_test.h Просмотреть файл

@@ -162,8 +162,6 @@ class FileTest {
// instructions.
void InjectInstruction(const std::string &key, const std::string &value);

void SetIgnoreUnusedAttributes(bool ignore);

private:
void ClearTest();
void ClearInstructions();
@@ -195,8 +193,6 @@ class FileTest {

bool is_at_new_instruction_block_ = false;

bool ignore_unused_attributes_ = false;

FileTest(const FileTest &) = delete;
FileTest &operator=(const FileTest &) = delete;
};


Загрузка…
Отмена
Сохранить