OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <stddef.h> | 5 #include <stddef.h> |
6 | 6 |
7 #include "chrome/common/render_messages.h" | 7 #include "chrome/common/render_messages.h" |
8 #include "chrome/renderer/content_settings_observer.h" | 8 #include "chrome/renderer/content_settings_observer.h" |
9 #include "chrome/test/base/chrome_render_view_test.h" | 9 #include "chrome/test/base/chrome_render_view_test.h" |
10 #include "components/content_settings/content/common/content_settings_messages.h
" | |
11 #include "components/content_settings/core/common/content_settings.h" | 10 #include "components/content_settings/core/common/content_settings.h" |
12 #include "content/public/renderer/render_view.h" | 11 #include "content/public/renderer/render_view.h" |
13 #include "ipc/ipc_message_macros.h" | 12 #include "ipc/ipc_message_macros.h" |
14 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
16 #include "third_party/WebKit/public/web/WebFrameContentDumper.h" | 15 #include "third_party/WebKit/public/web/WebFrameContentDumper.h" |
17 #include "third_party/WebKit/public/web/WebView.h" | 16 #include "third_party/WebKit/public/web/WebView.h" |
18 | 17 |
19 using testing::_; | 18 using testing::_; |
20 using testing::DeleteArg; | 19 using testing::DeleteArg; |
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
516 ContentSettingPatternSource( | 515 ContentSettingPatternSource( |
517 ContentSettingsPattern::Wildcard(), | 516 ContentSettingsPattern::Wildcard(), |
518 ContentSettingsPattern::Wildcard(), | 517 ContentSettingsPattern::Wildcard(), |
519 CONTENT_SETTING_BLOCK, | 518 CONTENT_SETTING_BLOCK, |
520 std::string(), | 519 std::string(), |
521 false)); | 520 false)); |
522 | 521 |
523 EXPECT_FALSE(observer->allowAutoplay(true)); | 522 EXPECT_FALSE(observer->allowAutoplay(true)); |
524 ::testing::Mock::VerifyAndClearExpectations(&observer); | 523 ::testing::Mock::VerifyAndClearExpectations(&observer); |
525 } | 524 } |
OLD | NEW |