Skip to content

Commit

Permalink
Merge remote-tracking branch 'bytecoin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptonotefoundation committed Jan 18, 2016
2 parents 531dacc + 64feea7 commit 8edd998
Show file tree
Hide file tree
Showing 595 changed files with 8,580 additions and 2,770 deletions.
4 changes: 4 additions & 0 deletions ReleaseNotes.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Release notes 1.1.1

This comment has been minimized.

Copy link
@CaveaTerra

CaveaTerra Feb 5, 2021

const char CRYPTONOTE_NAME [] = "PatrioticCoin";

This comment has been minimized.

Copy link
@ksavien

ksavien Nov 1, 2021

crlions

This comment has been minimized.

Copy link
@Alpaslandinc

Alpaslandinc Dec 17, 2022

const char CRYPTONOTE_NAME [] = "DincCoin";

This comment has been minimized.

Copy link
@CaveaTerra

CaveaTerra via email Dec 18, 2022

- New API for CryptoNote RPC Wallet

Release notes 1.1.0

This comment has been minimized.

Copy link
@CaveaTerra

CaveaTerra Feb 5, 2021

set_property (demon TARGET PROPERTY OUTPUT_NAME "PatrioticCoin")

- CryptoNote RPC Wallet
Expand Down
2 changes: 1 addition & 1 deletion external/gtest/include/gtest/gtest-spi.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class GTEST_API_ ScopedFakeTestPartResultReporter
//
// This method is from the TestPartResultReporterInterface
// interface.
virtual void ReportTestPartResult(const TestPartResult& result);
virtual void ReportTestPartResult(const TestPartResult& result) override;
private:
void Init();

Expand Down
4 changes: 2 additions & 2 deletions external/gtest/include/gtest/gtest-test-part.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ class GTEST_API_ HasNewFatalFailureHelper
: public TestPartResultReporterInterface {
public:
HasNewFatalFailureHelper();
virtual ~HasNewFatalFailureHelper();
virtual void ReportTestPartResult(const TestPartResult& result);
virtual ~HasNewFatalFailureHelper() override;
virtual void ReportTestPartResult(const TestPartResult& result) override;
bool has_new_fatal_failure() const { return has_new_fatal_failure_; }
private:
bool has_new_fatal_failure_;
Expand Down
26 changes: 13 additions & 13 deletions external/gtest/include/gtest/gtest.h
Original file line number Diff line number Diff line change
Expand Up @@ -1011,21 +1011,21 @@ class TestEventListener {
// above.
class EmptyTestEventListener : public TestEventListener {
public:
virtual void OnTestProgramStart(const UnitTest& /*unit_test*/) {}
virtual void OnTestProgramStart(const UnitTest& /*unit_test*/) override {}
virtual void OnTestIterationStart(const UnitTest& /*unit_test*/,
int /*iteration*/) {}
virtual void OnEnvironmentsSetUpStart(const UnitTest& /*unit_test*/) {}
virtual void OnEnvironmentsSetUpEnd(const UnitTest& /*unit_test*/) {}
virtual void OnTestCaseStart(const TestCase& /*test_case*/) {}
virtual void OnTestStart(const TestInfo& /*test_info*/) {}
virtual void OnTestPartResult(const TestPartResult& /*test_part_result*/) {}
virtual void OnTestEnd(const TestInfo& /*test_info*/) {}
virtual void OnTestCaseEnd(const TestCase& /*test_case*/) {}
virtual void OnEnvironmentsTearDownStart(const UnitTest& /*unit_test*/) {}
virtual void OnEnvironmentsTearDownEnd(const UnitTest& /*unit_test*/) {}
int /*iteration*/) override {}
virtual void OnEnvironmentsSetUpStart(const UnitTest& /*unit_test*/) override {}
virtual void OnEnvironmentsSetUpEnd(const UnitTest& /*unit_test*/) override {}
virtual void OnTestCaseStart(const TestCase& /*test_case*/) override {}
virtual void OnTestStart(const TestInfo& /*test_info*/) override {}
virtual void OnTestPartResult(const TestPartResult& /*test_part_result*/) override {}
virtual void OnTestEnd(const TestInfo& /*test_info*/) override {}
virtual void OnTestCaseEnd(const TestCase& /*test_case*/) override {}
virtual void OnEnvironmentsTearDownStart(const UnitTest& /*unit_test*/) override {}
virtual void OnEnvironmentsTearDownEnd(const UnitTest& /*unit_test*/) override {}
virtual void OnTestIterationEnd(const UnitTest& /*unit_test*/,
int /*iteration*/) {}
virtual void OnTestProgramEnd(const UnitTest& /*unit_test*/) {}
int /*iteration*/) override {}
virtual void OnTestProgramEnd(const UnitTest& /*unit_test*/) override {}
};

// TestEventListeners lets users add listeners to track events in Google Test.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class DeathTestFactory {
class DefaultDeathTestFactory : public DeathTestFactory {
public:
virtual bool Create(const char* statement, const RE* regex,
const char* file, int line, DeathTest** test);
const char* file, int line, DeathTest** test) override;
};

// Returns true if exit_status describes a process that was terminated
Expand Down
4 changes: 2 additions & 2 deletions external/gtest/include/gtest/internal/gtest-internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ class TestFactoryBase {
template <class TestClass>
class TestFactoryImpl : public TestFactoryBase {
public:
virtual Test* CreateTest() { return new TestClass; }
virtual Test* CreateTest() override { return new TestClass; }
};

#if GTEST_OS_WINDOWS
Expand Down Expand Up @@ -1138,7 +1138,7 @@ class GTEST_TEST_CLASS_NAME_(test_case_name, test_name) : public parent_class {\
public:\
GTEST_TEST_CLASS_NAME_(test_case_name, test_name)() {}\
private:\
virtual void TestBody();\
virtual void TestBody() override;\
static ::testing::TestInfo* const test_info_ GTEST_ATTRIBUTE_UNUSED_;\
GTEST_DISALLOW_COPY_AND_ASSIGN_(\
GTEST_TEST_CLASS_NAME_(test_case_name, test_name));\
Expand Down
26 changes: 13 additions & 13 deletions external/gtest/include/gtest/internal/gtest-param-util.h
Original file line number Diff line number Diff line change
Expand Up @@ -270,12 +270,12 @@ class ValuesInIteratorRangeGenerator : public ParamGeneratorInterface<T> {
template <typename ForwardIterator>
ValuesInIteratorRangeGenerator(ForwardIterator begin, ForwardIterator end)
: container_(begin, end) {}
virtual ~ValuesInIteratorRangeGenerator() {}
virtual ~ValuesInIteratorRangeGenerator() override {}

virtual ParamIteratorInterface<T>* Begin() const {
virtual ParamIteratorInterface<T>* Begin() const override {
return new Iterator(this, container_.begin());
}
virtual ParamIteratorInterface<T>* End() const {
virtual ParamIteratorInterface<T>* End() const override {
return new Iterator(this, container_.end());
}

Expand All @@ -287,16 +287,16 @@ class ValuesInIteratorRangeGenerator : public ParamGeneratorInterface<T> {
Iterator(const ParamGeneratorInterface<T>* base,
typename ContainerType::const_iterator iterator)
: base_(base), iterator_(iterator) {}
virtual ~Iterator() {}
virtual ~Iterator() override {}

virtual const ParamGeneratorInterface<T>* BaseGenerator() const {
virtual const ParamGeneratorInterface<T>* BaseGenerator() const override {
return base_;
}
virtual void Advance() {
virtual void Advance() override {
++iterator_;
value_.reset();
}
virtual ParamIteratorInterface<T>* Clone() const {
virtual ParamIteratorInterface<T>* Clone() const override {
return new Iterator(*this);
}
// We need to use cached value referenced by iterator_ because *iterator_
Expand All @@ -306,12 +306,12 @@ class ValuesInIteratorRangeGenerator : public ParamGeneratorInterface<T> {
// can advance iterator_ beyond the end of the range, and we cannot
// detect that fact. The client code, on the other hand, is
// responsible for not calling Current() on an out-of-range iterator.
virtual const T* Current() const {
virtual const T* Current() const override {
if (value_.get() == NULL)
value_.reset(new T(*iterator_));
return value_.get();
}
virtual bool Equals(const ParamIteratorInterface<T>& other) const {
virtual bool Equals(const ParamIteratorInterface<T>& other) const override {
// Having the same base generator guarantees that the other
// iterator is of the same type and we can downcast.
GTEST_CHECK_(BaseGenerator() == other.BaseGenerator())
Expand Down Expand Up @@ -355,7 +355,7 @@ class ParameterizedTestFactory : public TestFactoryBase {
typedef typename TestClass::ParamType ParamType;
explicit ParameterizedTestFactory(ParamType parameter) :
parameter_(parameter) {}
virtual Test* CreateTest() {
virtual Test* CreateTest() override {
TestClass::SetParam(&parameter_);
return new TestClass();
}
Expand Down Expand Up @@ -454,9 +454,9 @@ class ParameterizedTestCaseInfo : public ParameterizedTestCaseInfoBase {
: test_case_name_(name) {}

// Test case base name for display purposes.
virtual const string& GetTestCaseName() const { return test_case_name_; }
virtual const string& GetTestCaseName() const override { return test_case_name_; }
// Test case id to verify identity.
virtual TypeId GetTestCaseTypeId() const { return GetTypeId<TestCase>(); }
virtual TypeId GetTestCaseTypeId() const override { return GetTypeId<TestCase>(); }
// TEST_P macro uses AddTestPattern() to record information
// about a single test in a LocalTestInfo structure.
// test_case_name is the base name of the test case (without invocation
Expand Down Expand Up @@ -484,7 +484,7 @@ class ParameterizedTestCaseInfo : public ParameterizedTestCaseInfoBase {
// This method should not be called more then once on any single
// instance of a ParameterizedTestCaseInfoBase derived class.
// UnitTest has a guard to prevent from calling this method more then once.
virtual void RegisterTests() {
virtual void RegisterTests() override {
for (typename TestInfoContainer::iterator test_it = tests_.begin();
test_it != tests_.end(); ++test_it) {
linked_ptr<TestInfo> test_info = *test_it;
Expand Down
2 changes: 1 addition & 1 deletion external/gtest/include/gtest/internal/gtest-port.h
Original file line number Diff line number Diff line change
Expand Up @@ -1296,7 +1296,7 @@ class ThreadWithParam : public ThreadWithParamBase {
}
}

virtual void Run() {
virtual void Run() override {
if (thread_can_start_ != NULL)
thread_can_start_->WaitForNotification();
func_(param_);
Expand Down
10 changes: 5 additions & 5 deletions external/gtest/src/gtest-death-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,8 @@ class DeathTestImpl : public DeathTest {
// read_fd_ is expected to be closed and cleared by a derived class.
~DeathTestImpl() { GTEST_DEATH_TEST_CHECK_(read_fd_ == -1); }

void Abort(AbortReason reason);
virtual bool Passed(bool status_ok);
void Abort(AbortReason reason) override;
virtual bool Passed(bool status_ok) override;

const char* statement() const { return statement_; }
const RE* regex() const { return regex_; }
Expand Down Expand Up @@ -778,7 +778,7 @@ class ForkingDeathTest : public DeathTestImpl {
ForkingDeathTest(const char* statement, const RE* regex);

// All of these virtual functions are inherited from DeathTest.
virtual int Wait();
virtual int Wait() override;

protected:
void set_child_pid(pid_t child_pid) { child_pid_ = child_pid; }
Expand Down Expand Up @@ -814,7 +814,7 @@ class NoExecDeathTest : public ForkingDeathTest {
public:
NoExecDeathTest(const char* a_statement, const RE* a_regex) :
ForkingDeathTest(a_statement, a_regex) { }
virtual TestRole AssumeRole();
virtual TestRole AssumeRole() override;
};

// The AssumeRole process for a fork-and-run death test. It implements a
Expand Down Expand Up @@ -870,7 +870,7 @@ class ExecDeathTest : public ForkingDeathTest {
ExecDeathTest(const char* a_statement, const RE* a_regex,
const char* file, int line) :
ForkingDeathTest(a_statement, a_regex), file_(file), line_(line) { }
virtual TestRole AssumeRole();
virtual TestRole AssumeRole() override;
private:
static ::std::vector<testing::internal::string>
GetArgvsForDeathTestChildProcess() {
Expand Down
30 changes: 15 additions & 15 deletions external/gtest/src/gtest-internal-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -441,10 +441,10 @@ class OsStackTraceGetter : public OsStackTraceGetterInterface {
public:
OsStackTraceGetter() : caller_frame_(NULL) {}

virtual string CurrentStackTrace(int max_depth, int skip_count)
virtual string CurrentStackTrace(int max_depth, int skip_count) override
GTEST_LOCK_EXCLUDED_(mutex_);

virtual void UponLeavingGTest() GTEST_LOCK_EXCLUDED_(mutex_);
virtual void UponLeavingGTest() override GTEST_LOCK_EXCLUDED_(mutex_);

// This string is inserted in place of stack frames that are part of
// Google Test's implementation.
Expand Down Expand Up @@ -477,7 +477,7 @@ class DefaultGlobalTestPartResultReporter
explicit DefaultGlobalTestPartResultReporter(UnitTestImpl* unit_test);
// Implements the TestPartResultReporterInterface. Reports the test part
// result in the current test.
virtual void ReportTestPartResult(const TestPartResult& result);
virtual void ReportTestPartResult(const TestPartResult& result) override;

private:
UnitTestImpl* const unit_test_;
Expand All @@ -493,7 +493,7 @@ class DefaultPerThreadTestPartResultReporter
explicit DefaultPerThreadTestPartResultReporter(UnitTestImpl* unit_test);
// Implements the TestPartResultReporterInterface. The implementation just
// delegates to the current global test part result reporter of *unit_test_.
virtual void ReportTestPartResult(const TestPartResult& result);
virtual void ReportTestPartResult(const TestPartResult& result) override;

private:
UnitTestImpl* const unit_test_;
Expand Down Expand Up @@ -1100,7 +1100,7 @@ class StreamingListener : public EmptyTestEventListener {
}

// Sends a string to the socket.
virtual void Send(const string& message) {
virtual void Send(const string& message) override {
GTEST_CHECK_(sockfd_ != -1)
<< "Send() can be called only when there is a connection.";

Expand All @@ -1117,7 +1117,7 @@ class StreamingListener : public EmptyTestEventListener {
void MakeConnection();

// Closes the socket.
void CloseConnection() {
void CloseConnection() override {
GTEST_CHECK_(sockfd_ != -1)
<< "CloseConnection() can be called only when there is a connection.";

Expand All @@ -1141,11 +1141,11 @@ class StreamingListener : public EmptyTestEventListener {
explicit StreamingListener(AbstractSocketWriter* socket_writer)
: socket_writer_(socket_writer) { Start(); }

void OnTestProgramStart(const UnitTest& /* unit_test */) {
void OnTestProgramStart(const UnitTest& /* unit_test */) override {
SendLn("event=TestProgramStart");
}

void OnTestProgramEnd(const UnitTest& unit_test) {
void OnTestProgramEnd(const UnitTest& unit_test) override {
// Note that Google Test current only report elapsed time for each
// test iteration, not for the entire test program.
SendLn("event=TestProgramEnd&passed=" + FormatBool(unit_test.Passed()));
Expand All @@ -1154,39 +1154,39 @@ class StreamingListener : public EmptyTestEventListener {
socket_writer_->CloseConnection();
}

void OnTestIterationStart(const UnitTest& /* unit_test */, int iteration) {
void OnTestIterationStart(const UnitTest& /* unit_test */, int iteration) override {
SendLn("event=TestIterationStart&iteration=" +
StreamableToString(iteration));
}

void OnTestIterationEnd(const UnitTest& unit_test, int /* iteration */) {
void OnTestIterationEnd(const UnitTest& unit_test, int /* iteration */) override {
SendLn("event=TestIterationEnd&passed=" +
FormatBool(unit_test.Passed()) + "&elapsed_time=" +
StreamableToString(unit_test.elapsed_time()) + "ms");
}

void OnTestCaseStart(const TestCase& test_case) {
void OnTestCaseStart(const TestCase& test_case) override {
SendLn(std::string("event=TestCaseStart&name=") + test_case.name());
}

void OnTestCaseEnd(const TestCase& test_case) {
void OnTestCaseEnd(const TestCase& test_case) override {
SendLn("event=TestCaseEnd&passed=" + FormatBool(test_case.Passed())
+ "&elapsed_time=" + StreamableToString(test_case.elapsed_time())
+ "ms");
}

void OnTestStart(const TestInfo& test_info) {
void OnTestStart(const TestInfo& test_info) override {
SendLn(std::string("event=TestStart&name=") + test_info.name());
}

void OnTestEnd(const TestInfo& test_info) {
void OnTestEnd(const TestInfo& test_info) override {
SendLn("event=TestEnd&passed=" +
FormatBool((test_info.result())->Passed()) +
"&elapsed_time=" +
StreamableToString((test_info.result())->elapsed_time()) + "ms");
}

void OnTestPartResult(const TestPartResult& test_part_result) {
void OnTestPartResult(const TestPartResult& test_part_result) override {
const char* file_name = test_part_result.file_name();
if (file_name == NULL)
file_name = "";
Expand Down
Loading

0 comments on commit 8edd998

Please sign in to comment.