OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |