Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: chrome/renderer/content_settings_observer_browsertest.cc

Issue 2387613002: Merge Content Settings IPCs back to chrome/common/render_messages.h (Closed)
Patch Set: Cover param_traits in chrome/common/OWNERS, as requested by the presubmit script Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/renderer/content_settings_observer.cc ('k') | chrome/renderer/plugins/chrome_plugin_placeholder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698