Skip to content

Commit

Permalink
Make all inclusions of web_test.h be via a #import
Browse files Browse the repository at this point in the history
web_test.h is an Obj-C header and as per the style guide must
be #imported

This makes the web layer consistent with the mechanism used to
bring in this header. Also this will make future copy-pasting of this
header consistent.

Review URL: https://codereview.chromium.org/1441903002

Cr-Commit-Position: refs/heads/master@{#359484}
  • Loading branch information
shreyasv authored and Commit bot committed Nov 13, 2015
1 parent 8c6d602 commit 4640bc5
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion ios/web/active_state_manager_impl_unittest.mm
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "ios/web/public/browser_state.h"
#include "ios/web/public/test/test_browser_state.h"
#include "ios/web/public/test/test_web_thread_bundle.h"
#include "ios/web/test/web_test.h"
#import "ios/web/test/web_test.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/platform_test.h"
Expand Down
2 changes: 1 addition & 1 deletion ios/web/crw_browsing_data_store_unittest.mm
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "ios/web/public/browser_state.h"
#include "ios/web/public/test/test_browser_state.h"
#include "ios/web/public/test/test_web_thread_bundle.h"
#include "ios/web/test/web_test.h"
#import "ios/web/test/web_test.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/platform_test.h"

Expand Down
2 changes: 1 addition & 1 deletion ios/web/net/crw_cert_verification_controller_unittest.mm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "base/message_loop/message_loop.h"
#include "base/test/ios/wait_util.h"
#include "ios/web/public/web_thread.h"
#include "ios/web/test/web_test.h"
#import "ios/web/test/web_test.h"
#import "ios/web/web_state/wk_web_view_security_util.h"
#include "net/base/test_data_directory.h"
#include "net/cert/mock_cert_verifier.h"
Expand Down
2 changes: 1 addition & 1 deletion ios/web/test/web_test.mm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ios/web/test/web_test.h"
#import "ios/web/test/web_test.h"

#include "base/base64.h"
#include "base/strings/stringprintf.h"
Expand Down
2 changes: 1 addition & 1 deletion ios/web/web_state/js/common_js_unittest.mm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "base/strings/stringprintf.h"
#include "base/strings/sys_string_conversions.h"
#include "ios/web/public/test/web_test_util.h"
#include "ios/web/test/web_test.h"
#import "ios/web/test/web_test.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/gtest_mac.h"

Expand Down
2 changes: 1 addition & 1 deletion ios/web/web_state/js/core_js_unittest.mm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include "base/strings/stringprintf.h"
#include "ios/web/public/test/web_test_util.h"
#include "ios/web/test/web_test.h"
#import "ios/web/test/web_test.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/gtest_mac.h"

Expand Down
2 changes: 1 addition & 1 deletion ios/web/web_state/js/crw_js_injection_manager_unittest.mm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "ios/web/public/test/web_test_util.h"
#import "ios/web/public/web_state/js/crw_js_injection_manager.h"
#import "ios/web/public/web_state/js/crw_js_injection_receiver.h"
#include "ios/web/test/web_test.h"
#import "ios/web/test/web_test.h"
#import "testing/gtest_mac.h"

// Testing class of JsInjectioManager that has no dependencies.
Expand Down
2 changes: 1 addition & 1 deletion ios/web/web_state/js/page_script_util_unittest.mm
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#import "ios/web/public/test/test_web_client.h"
#include "ios/web/public/test/web_test_util.h"
#import "ios/web/public/web_view_creation_util.h"
#include "ios/web/test/web_test.h"
#import "ios/web/test/web_test.h"
#include "testing/gtest_mac.h"

namespace web {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#import "ios/web/public/web_state/js/crw_js_injection_manager.h"
#import "ios/web/public/web_state/js/crw_js_injection_receiver.h"
#import "ios/web/test/crw_fake_web_controller_observer.h"
#include "ios/web/test/web_test.h"
#import "ios/web/test/web_test.h"
#include "testing/gtest_mac.h"

namespace {
Expand Down
2 changes: 1 addition & 1 deletion ios/web/web_state/ui/crw_web_controller_unittest.mm
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#import "ios/web/public/web_state/ui/crw_content_view.h"
#import "ios/web/public/web_state/ui/crw_web_view_content_view.h"
#include "ios/web/public/web_state/url_verification_constants.h"
#include "ios/web/test/web_test.h"
#import "ios/web/test/web_test.h"
#import "ios/web/test/wk_web_view_crash_utils.h"
#include "ios/web/web_state/blocked_popup_info.h"
#import "ios/web/web_state/js/crw_js_invoke_parameter_queue.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "ios/web/public/test/test_browser_state.h"
#import "ios/web/public/test/test_web_client.h"
#include "ios/web/public/test/web_test_util.h"
#include "ios/web/test/web_test.h"
#import "ios/web/test/web_test.h"
#include "third_party/ocmock/OCMock/OCMock.h"
#include "third_party/ocmock/gtest_support.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#import "ios/web/public/test/test_web_client.h"
#include "ios/web/public/test/web_test_util.h"
#import "ios/web/public/web_view_creation_util.h"
#include "ios/web/test/web_test.h"
#import "ios/web/test/web_test.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/gtest_mac.h"
#import "third_party/ocmock/OCMock/OCMock.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "base/mac/scoped_nsobject.h"
#import "ios/web/public/test/test_web_client.h"
#include "ios/web/public/test/web_test_util.h"
#include "ios/web/test/web_test.h"
#import "ios/web/test/web_test.h"
#import "ios/web/test/wk_web_view_crash_utils.h"

namespace {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#import "ios/web/web_state/ui/crw_simple_web_view_controller.h"
#import "ios/web/web_state/ui/crw_static_file_web_view.h"
#import "ios/web/web_state/ui/wk_web_view_configuration_provider.h"
#include "ios/web/test/web_test.h"
#import "ios/web/test/web_test.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest_mac.h"

Expand Down

0 comments on commit 4640bc5

Please sign in to comment.