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 <string> | 5 #include <string> |
6 | 6 |
7 #include "base/string16.h" | 7 #include "base/string16.h" |
8 #include "base/stringprintf.h" | 8 #include "base/stringprintf.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "chrome/browser/extensions/api/push_messaging/sync_setup_helper.h" | 10 #include "chrome/browser/extensions/api/push_messaging/sync_setup_helper.h" |
11 #include "chrome/browser/extensions/extension_apitest.h" | 11 #include "chrome/browser/extensions/extension_apitest.h" |
12 #include "chrome/browser/extensions/extension_service.h" | 12 #include "chrome/browser/extensions/extension_service.h" |
13 #include "chrome/browser/ui/browser.h" | 13 #include "chrome/browser/ui/browser.h" |
14 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 14 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
15 #include "chrome/common/chrome_switches.h" | 15 #include "chrome/common/chrome_switches.h" |
16 #include "chrome/common/extensions/extension_set.h" | 16 #include "chrome/common/extensions/extension_set.h" |
17 #include "chrome/test/base/ui_test_utils.h" | 17 #include "chrome/test/base/ui_test_utils.h" |
18 #include "content/public/browser/render_view_host.h" | 18 #include "content/public/browser/render_view_host.h" |
19 #include "net/dns/mock_host_resolver.h" | 19 #include "net/dns/mock_host_resolver.h" |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 "startTestWithCredentials('%s', '%s', '%s');", | 160 "startTestWithCredentials('%s', '%s', '%s');", |
161 client_id.c_str(), client_secret.c_str(), refresh_token.c_str())); | 161 client_id.c_str(), client_secret.c_str(), refresh_token.c_str())); |
162 | 162 |
163 browser()->tab_strip_model()->GetActiveWebContents()->GetRenderViewHost()-> | 163 browser()->tab_strip_model()->GetActiveWebContents()->GetRenderViewHost()-> |
164 ExecuteJavascriptInWebFrame(string16(), script_string); | 164 ExecuteJavascriptInWebFrame(string16(), script_string); |
165 | 165 |
166 EXPECT_TRUE(catcher.GetNextResult()) << catcher.message(); | 166 EXPECT_TRUE(catcher.GetNextResult()) << catcher.message(); |
167 } | 167 } |
168 | 168 |
169 } // namespace extensions | 169 } // namespace extensions |
OLD | NEW |