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

Side by Side Diff: chrome/browser/renderer_host/test/render_view_host_browsertest.cc

Issue 5043001: Cleanup: Include browser.h -> ui/browser.h [Part 1]. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "base/utf_string_conversions.h" 5 #include "base/utf_string_conversions.h"
6 #include "base/values.h" 6 #include "base/values.h"
7 #include "chrome/browser/browser.h"
8 #include "chrome/browser/renderer_host/render_view_host.h" 7 #include "chrome/browser/renderer_host/render_view_host.h"
9 #include "chrome/browser/tab_contents/tab_contents.h" 8 #include "chrome/browser/tab_contents/tab_contents.h"
9 #include "chrome/browser/ui/browser.h"
10 #include "chrome/test/in_process_browser_test.h" 10 #include "chrome/test/in_process_browser_test.h"
11 #include "chrome/test/ui_test_utils.h" 11 #include "chrome/test/ui_test_utils.h"
12 #include "net/test/test_server.h" 12 #include "net/test/test_server.h"
13 13
14 typedef InProcessBrowserTest RenderViewHostTest; 14 typedef InProcessBrowserTest RenderViewHostTest;
15 15
16 typedef std::pair<int, Value*> ExecuteDetailType; 16 typedef std::pair<int, Value*> ExecuteDetailType;
17 17
18 namespace { 18 namespace {
19 19
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 &observer, 84 &observer,
85 NotificationType::EXECUTE_JAVASCRIPT_RESULT, 85 NotificationType::EXECUTE_JAVASCRIPT_RESULT,
86 Source<RenderViewHost>(rvh)); 86 Source<RenderViewHost>(rvh));
87 EXPECT_EQ(execute_id2, observer.id()); 87 EXPECT_EQ(execute_id2, observer.id());
88 ASSERT_TRUE(observer.value()); 88 ASSERT_TRUE(observer.value());
89 bool bool_value; 89 bool bool_value;
90 ASSERT_TRUE(observer.value()->GetAsBoolean(&bool_value)); 90 ASSERT_TRUE(observer.value()->GetAsBoolean(&bool_value));
91 EXPECT_FALSE(bool_value); 91 EXPECT_FALSE(bool_value);
92 } 92 }
93 } 93 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698