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

Side by Side Diff: webkit/glue/webview_unittest.cc

Issue 293001: Delete glue/webview{_delegate}.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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 | Annotate | Revision Log
« no previous file with comments | « webkit/glue/webview_impl.cc ('k') | webkit/glue/webworker_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "testing/gtest/include/gtest/gtest.h" 5 #include "testing/gtest/include/gtest/gtest.h"
6 #include "webkit/glue/webview.h" 6 #include "webkit/api/public/WebView.h"
7 #include "webkit/tools/test_shell/test_shell_test.h" 7 #include "webkit/tools/test_shell/test_shell_test.h"
8 8
9 using WebKit::WebView;
10
9 class WebViewTest : public TestShellTest { 11 class WebViewTest : public TestShellTest {
10 }; 12 };
11 13
12 TEST_F(WebViewTest, GetContentAsPlainText) { 14 TEST_F(WebViewTest, GetContentAsPlainText) {
13 WebView* view = test_shell_->webView(); 15 WebView* view = test_shell_->webView();
14 ASSERT_TRUE(view != 0); 16 ASSERT_TRUE(view != 0);
15 17
16 view->setIsActive(true); 18 view->setIsActive(true);
17 EXPECT_TRUE(view->isActive()); 19 EXPECT_TRUE(view->isActive());
18 20
19 view->setIsActive(false); 21 view->setIsActive(false);
20 EXPECT_FALSE(view->isActive()); 22 EXPECT_FALSE(view->isActive());
21 23
22 view->setIsActive(true); 24 view->setIsActive(true);
23 EXPECT_TRUE(view->isActive()); 25 EXPECT_TRUE(view->isActive());
24 } 26 }
25 27
26 // TODO(viettrungluu): add more tests 28 // TODO(viettrungluu): add more tests
OLDNEW
« no previous file with comments | « webkit/glue/webview_impl.cc ('k') | webkit/glue/webworker_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698