OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/stringprintf.h" | 5 #include "base/stringprintf.h" |
6 #include "chrome/browser/extensions/extension_apitest.h" | 6 #include "chrome/browser/extensions/extension_apitest.h" |
7 #include "chrome/browser/extensions/extension_test_message_listener.h" | 7 #include "chrome/browser/extensions/extension_test_message_listener.h" |
8 #include "chrome/common/chrome_version_info.h" | 8 #include "chrome/common/chrome_version_info.h" |
9 #include "chrome/common/extensions/feature_switch.h" | 9 #include "chrome/common/extensions/feature_switch.h" |
10 #include "chrome/common/extensions/features/feature.h" | 10 #include "chrome/common/extensions/features/feature.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 61 |
62 content::OpenURLParams params(GURL("about:blank"), content::Referrer(), | 62 content::OpenURLParams params(GURL("about:blank"), content::Referrer(), |
63 NEW_FOREGROUND_TAB, | 63 NEW_FOREGROUND_TAB, |
64 content::PAGE_TRANSITION_LINK, false); | 64 content::PAGE_TRANSITION_LINK, false); |
65 content::WebContents* web_contents = browser()->OpenURL(params); | 65 content::WebContents* web_contents = browser()->OpenURL(params); |
66 | 66 |
67 content::RenderViewHost* const rvh = web_contents->GetRenderViewHost(); | 67 content::RenderViewHost* const rvh = web_contents->GetRenderViewHost(); |
68 int render_process_id = rvh->GetProcess()->GetID(); | 68 int render_process_id = rvh->GetProcess()->GetID(); |
69 int routing_id = rvh->GetRoutingID(); | 69 int routing_id = rvh->GetRoutingID(); |
70 | 70 |
71 listener.Reply(StringPrintf("%i:%i", render_process_id, routing_id)); | 71 listener.Reply(base::StringPrintf("%i:%i", render_process_id, routing_id)); |
72 | 72 |
73 ResultCatcher catcher; | 73 ResultCatcher catcher; |
74 catcher.RestrictToProfile(browser()->profile()); | 74 catcher.RestrictToProfile(browser()->profile()); |
75 EXPECT_TRUE(catcher.GetNextResult()) << catcher.message(); | 75 EXPECT_TRUE(catcher.GetNextResult()) << catcher.message(); |
76 } | 76 } |
77 | 77 |
78 } // namespace chrome | 78 } // namespace chrome |
OLD | NEW |