Chromium Code Reviews| Index: blimp/net/engine_authentication_handler_unittest.cc |
| diff --git a/blimp/net/engine_authentication_handler_unittest.cc b/blimp/net/engine_authentication_handler_unittest.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..815cf1b4b69dd60a515f7725fb316cde98f4604c |
| --- /dev/null |
| +++ b/blimp/net/engine_authentication_handler_unittest.cc |
| @@ -0,0 +1,53 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include <stddef.h> |
| +#include <string> |
| + |
| +#include "base/callback_helpers.h" |
| +#include "base/message_loop/message_loop.h" |
| +#include "base/run_loop.h" |
| +#include "blimp/net/blimp_connection.h" |
| +#include "blimp/net/blimp_transport.h" |
| +#include "blimp/net/common.h" |
| +#include "blimp/net/connection_error_observer.h" |
| +#include "blimp/net/engine_authentication_handler.h" |
| +#include "blimp/net/test_common.h" |
| +#include "net/base/completion_callback.h" |
| +#include "net/base/net_errors.h" |
| +#include "net/base/test_completion_callback.h" |
| +#include "testing/gmock/include/gmock/gmock.h" |
| +#include "testing/gtest/include/gtest/gtest.h" |
| + |
| +using testing::_; |
| +using testing::Eq; |
| +using testing::Return; |
| +using testing::SaveArg; |
| + |
| +namespace blimp { |
| + |
| +class EngineAuthenticationHandlerTest : public testing::Test { |
| + public: |
| + EngineAuthenticationHandlerTest() |
| + : handler_(new EngineAuthenticationHandler(&connection_handler_)) {} |
| + |
| + ~EngineAuthenticationHandlerTest() override {} |
| + |
| + scoped_ptr<BlimpConnection> CreateConnection() { |
| + return make_scoped_ptr( |
| + new BlimpConnection(make_scoped_ptr(new MockPacketReader), |
| + make_scoped_ptr(new MockPacketWriter))); |
| + } |
| + |
| + protected: |
| + base::MessageLoop message_loop_; |
| + testing::StrictMock<MockConnectionHandler> connection_handler_; |
| + scoped_ptr<EngineAuthenticationHandler> handler_; |
| +}; |
| + |
|
Kevin M
2015/12/04 19:12:05
Plz implement
|
| +TEST_F(EngineAuthenticationHandlerTest, AuthenticationSucceeds) { |
| + ASSERT_FALSE(false); |
| +} |
| + |
| +} // namespace blimp |