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

Side by Side Diff: third_party/WebKit/Source/core/page/ContextMenuControllerTest.cpp

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "core/page/ContextMenuController.h" 5 #include "core/page/ContextMenuController.h"
6 6
7 #include <memory>
7 #include "core/clipboard/DataTransfer.h" 8 #include "core/clipboard/DataTransfer.h"
8 #include "core/events/MouseEvent.h" 9 #include "core/events/MouseEvent.h"
9 #include "core/frame/FrameView.h" 10 #include "core/frame/FrameView.h"
10 #include "core/frame/Settings.h" 11 #include "core/frame/Settings.h"
11 #include "core/html/HTMLElement.h" 12 #include "core/html/HTMLElement.h"
12 #include "core/testing/DummyPageHolder.h" 13 #include "core/testing/DummyPageHolder.h"
13 #include "platform/ContextMenu.h" 14 #include "platform/ContextMenu.h"
14 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
15 #include <memory>
16 16
17 namespace blink { 17 namespace blink {
18 18
19 class ContextMenuControllerTest : public testing::Test { 19 class ContextMenuControllerTest : public testing::Test {
20 protected: 20 protected:
21 virtual void SetUp() { 21 virtual void SetUp() {
22 m_pageHolder = DummyPageHolder::create(IntSize(800, 600)); 22 m_pageHolder = DummyPageHolder::create(IntSize(800, 600));
23 } 23 }
24 24
25 Document& document() const { return m_pageHolder->document(); } 25 Document& document() const { return m_pageHolder->document(); }
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 EXPECT_STREQ("Title 7 not checked", document().title().utf8().data()); 120 EXPECT_STREQ("Title 7 not checked", document().title().utf8().data());
121 document().page()->contextMenuController().contextMenuItemSelected(&items[5]); 121 document().page()->contextMenuController().contextMenuItemSelected(&items[5]);
122 EXPECT_STREQ("Title 8 not checked and Title 9 checked", 122 EXPECT_STREQ("Title 8 not checked and Title 9 checked",
123 document().title().utf8().data()); 123 document().title().utf8().data());
124 document().page()->contextMenuController().contextMenuItemSelected(&items[7]); 124 document().page()->contextMenuController().contextMenuItemSelected(&items[7]);
125 EXPECT_STREQ("Title 10 not checked and Title 8 checked", 125 EXPECT_STREQ("Title 10 not checked and Title 8 checked",
126 document().title().utf8().data()); 126 document().title().utf8().data());
127 } 127 }
128 128
129 } // namespace blink 129 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/page/ContextMenuController.cpp ('k') | third_party/WebKit/Source/core/page/DragController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698