Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

Commit

Permalink
Refactor/disable compatibility (#1348)
Browse files Browse the repository at this point in the history
* Fix build errors

Signed-off-by: Dumitru <[email protected]>

* Move linked library to the right place

Signed-off-by: Dumitru <[email protected]>

* Fixed link error

Signed-off-by: Dumitru <[email protected]>
  • Loading branch information
x3medima17 authored May 18, 2018
1 parent 036cac8 commit 21b0c8d
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
3 changes: 0 additions & 3 deletions iroha-cli/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,10 @@
#include <rapidjson/istreamwrapper.h>
#include <rapidjson/rapidjson.h>
#include <boost/filesystem.hpp>
#include <fstream>
#include <iostream>

#include "backend/protobuf/queries/proto_query.hpp"
#include "client.hpp"
#include "common/assert_config.hpp"
#include "converters/protobuf/json_proto_converter.hpp"
#include "crypto/keys_manager_impl.hpp"
#include "grpc_response_handler.hpp"
Expand All @@ -36,7 +34,6 @@
#include "model/converters/pb_transaction_factory.hpp"
#include "model/generators/block_generator.hpp"
#include "model/model_crypto_provider_impl.hpp"
#include "validators.hpp"

// Account information
DEFINE_bool(new_account,
Expand Down
1 change: 1 addition & 0 deletions irohad/consensus/yac/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@ target_link_libraries(yac
yac_grpc
logger
hash
shared_model_proto_backend
)
1 change: 1 addition & 0 deletions irohad/execution/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ add_library(query_execution
target_link_libraries(query_execution
rxcpp
shared_model_default_builders
common_execution
)
2 changes: 2 additions & 0 deletions irohad/network/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ target_link_libraries(block_loader
loader_grpc
rxcpp
shared_model_interfaces
shared_model_proto_backend
logger
)

add_library(block_loader_service
Expand Down
1 change: 1 addition & 0 deletions irohad/torii/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ target_link_libraries(torii_service
shared_model_proto_backend
logger
shared_model_stateless_validation
processors
)
1 change: 1 addition & 0 deletions irohad/torii/processor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ target_link_libraries(processors PUBLIC
logger
endpoint
shared_model_proto_builders
query_execution
)
1 change: 1 addition & 0 deletions test/integration/transport/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ target_link_libraries(ordering_gate_service_test
ordering_service
shared_model_stateless_validation
shared_model_cryptography_model
iroha_amount
)
5 changes: 1 addition & 4 deletions test/module/iroha-cli/client_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ TEST_F(ClientServerTest, SendQueryWhenStatelessInvalid) {
ASSERT_TRUE(res.status.ok());
ASSERT_TRUE(res.answer.has_error_response());
ASSERT_EQ(res.answer.error_response().reason(),
iroha::model::ErrorResponse::STATELESS_INVALID);
iroha::protocol::ErrorResponse::STATELESS_INVALID);
ASSERT_NE(res.answer.error_response().message().size(), 0);
}

Expand Down Expand Up @@ -247,9 +247,6 @@ TEST_F(ClientServerTest, SendQueryWhenValid) {
TEST_F(ClientServerTest, SendQueryWhenStatefulInvalid) {
iroha_cli::CliClient client(Ip, Port);

auto account_test = iroha::model::Account();
account_test.account_id = "test@test";

EXPECT_CALL(*wsv_query, getSignatories("admin@test"))
.WillRepeatedly(Return(signatories));

Expand Down
2 changes: 2 additions & 0 deletions test/module/irohad/ordering/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ addtest(ordering_service_test ordering_service_test.cpp)
target_link_libraries(ordering_service_test
ordering_service
shared_model_stateless_validation
iroha_amount
)

addtest(ordering_gate_test ordering_gate_test.cpp)
target_link_libraries(ordering_gate_test
ordering_service
shared_model_cryptography_model
shared_model_stateless_validation
iroha_amount
)
1 change: 1 addition & 0 deletions test/module/irohad/synchronizer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ addtest(synchronizer_test synchronizer_test.cpp)
target_link_libraries(synchronizer_test
synchronizer
shared_model_cryptography
shared_model_proto_backend
)


4 changes: 0 additions & 4 deletions test/module/irohad/validation/query_execution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ using ::testing::_;

using namespace iroha;
using namespace iroha::ametsuchi;
using namespace iroha::model;
using namespace framework::test_subscriber;
using namespace shared_model::permissions;

Expand Down Expand Up @@ -118,7 +117,6 @@ class QueryValidateExecuteTest : public ::testing::Test {
std::shared_ptr<MockBlockQuery> block_query;

std::shared_ptr<QueryProcessingFactory> factory;
std::shared_ptr<Query> query;
};

class GetAccountTest : public QueryValidateExecuteTest {
Expand Down Expand Up @@ -1277,7 +1275,6 @@ class GetRolesTest : public QueryValidateExecuteTest {
roles = {admin_role, "some_role"};
}
std::vector<std::string> roles;
std::shared_ptr<GetRoles> qry;
};

/**
Expand Down Expand Up @@ -1359,7 +1356,6 @@ class GetRolePermissionsTest : public QueryValidateExecuteTest {
}
std::string role_id = "user";
std::vector<std::string> perms;
std::shared_ptr<GetRolePermissions> qry;
};

/**
Expand Down

0 comments on commit 21b0c8d

Please sign in to comment.