| Index: chrome/browser/sessions/session_types_test_helper.cc
|
| diff --git a/chrome/browser/sessions/session_types_test_helper.cc b/chrome/browser/sessions/session_types_test_helper.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a14694afe6935803f639438ccddaafc49a14c72d
|
| --- /dev/null
|
| +++ b/chrome/browser/sessions/session_types_test_helper.cc
|
| @@ -0,0 +1,22 @@
|
| +// Copyright (c) 2012 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 "chrome/browser/sessions/session_types_test_helper.h"
|
| +
|
| +#include "chrome/browser/sessions/session_types.h"
|
| +#include "testing/gtest/include/gtest/gtest.h"
|
| +
|
| +void SessionTypesTestHelper::AssertNavigationEquals(
|
| + const TabNavigation& expected,
|
| + const TabNavigation& actual) {
|
| + EXPECT_EQ(expected.referrer_.url, actual.referrer_.url);
|
| + EXPECT_EQ(expected.referrer_.policy, actual.referrer_.policy);
|
| + EXPECT_EQ(expected.virtual_url_, actual.virtual_url_);
|
| + EXPECT_EQ(expected.title_, actual.title_);
|
| + EXPECT_EQ(expected.content_state_, actual.content_state_);
|
| + EXPECT_EQ(expected.transition_type_, actual.transition_type_);
|
| + EXPECT_EQ(expected.has_post_data_, actual.has_post_data_);
|
| + EXPECT_EQ(expected.original_request_url_, actual.original_request_url_);
|
| + EXPECT_EQ(expected.is_overriding_user_agent_,
|
| + actual.is_overriding_user_agent_);
|
| +}
|
|
|