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

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

Issue 255042: Reverting 27711. (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.cc » ('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/glue/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 class WebViewTest : public TestShellTest { 9 class WebViewTest : public TestShellTest {
10 }; 10 };
11 11
12 TEST_F(WebViewTest, GetContentAsPlainText) { 12 TEST_F(WebViewTest, GetContentAsPlainText) {
13 WebView* view = test_shell_->webView(); 13 WebView* view = test_shell_->webView();
14 ASSERT_TRUE(view != 0); 14 ASSERT_TRUE(view != 0);
15 15
16 view->SetActive(true); 16 view->setIsActive(true);
17 EXPECT_TRUE(view->IsActive()); 17 EXPECT_TRUE(view->isActive());
18 18
19 view->SetActive(false); 19 view->setIsActive(false);
20 EXPECT_FALSE(view->IsActive()); 20 EXPECT_FALSE(view->isActive());
21 21
22 view->SetActive(true); 22 view->setIsActive(true);
23 EXPECT_TRUE(view->IsActive()); 23 EXPECT_TRUE(view->isActive());
24 } 24 }
25 25
26 // TODO(viettrungluu): add more tests 26 // TODO(viettrungluu): add more tests
OLDNEW
« no previous file with comments | « webkit/glue/webview_impl.cc ('k') | webkit/glue/webworker_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698