mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 18:08:53 +00:00
a67525fae1
Summary: Pull Request resolved: https://github.com/facebook/osquery/pull/5375 LICENSE is now defined in a single file on the root of the project, update the header to contain that information. **Project LICENSE did not change.** Reviewed By: akindyakov Differential Revision: D13750575 fbshipit-source-id: 1e608a81b260b8395f9d008fc67f463160c1fc2b
54 lines
1.1 KiB
C++
54 lines
1.1 KiB
C++
/**
|
|
* Copyright (c) 2014-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed as defined on the LICENSE file found in the
|
|
* root directory of this source tree.
|
|
*/
|
|
|
|
#include <benchmark/benchmark.h>
|
|
|
|
#include <osquery/flags.h>
|
|
#include <osquery/logger.h>
|
|
#include <osquery/registry_factory.h>
|
|
|
|
#include "osquery/tests/test_util.h"
|
|
|
|
namespace osquery {
|
|
|
|
class NoneLoggerPlugin : public LoggerPlugin {
|
|
public:
|
|
Status setUp() override {
|
|
return Status(0);
|
|
}
|
|
|
|
Status logString(const std::string& s) override {
|
|
return Status(0);
|
|
}
|
|
|
|
Status logStatus(const std::vector<StatusLogLine>& log) override {
|
|
return Status(0);
|
|
}
|
|
|
|
void init(const std::string& name,
|
|
const std::vector<StatusLogLine>& log) override {}
|
|
};
|
|
|
|
REGISTER(NoneLoggerPlugin, "logger", "none");
|
|
|
|
DECLARE_string(logger_plugin);
|
|
}
|
|
|
|
int main(int argc, char *argv[]) {
|
|
osquery::FLAGS_logger_plugin = "none";
|
|
|
|
osquery::initTesting();
|
|
|
|
// Optionally enable Goggle Logging
|
|
google::InitGoogleLogging(argv[0]);
|
|
|
|
::benchmark::Initialize(&argc, argv);
|
|
::benchmark::RunSpecifiedBenchmarks();
|
|
return 0;
|
|
}
|