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 "chrome/browser/ui/webui/options/options_ui_browsertest.h" | 5 #include "chrome/browser/ui/webui/options/options_ui_browsertest.h" |
6 | 6 |
7 #include "base/prefs/pref_service.h" | 7 #include "base/prefs/pref_service.h" |
8 #include "base/scoped_observer.h" | 8 #include "base/scoped_observer.h" |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "chrome/browser/chrome_notification_types.h" | 11 #include "chrome/browser/chrome_notification_types.h" |
12 #include "chrome/browser/signin/signin_manager_factory.h" | 12 #include "chrome/browser/signin/signin_manager_factory.h" |
13 #include "chrome/browser/ui/browser.h" | 13 #include "chrome/browser/ui/browser.h" |
14 #include "chrome/browser/ui/chrome_pages.h" | 14 #include "chrome/browser/ui/chrome_pages.h" |
15 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 15 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
16 #include "chrome/browser/ui/webui/options/options_ui.h" | 16 #include "chrome/browser/ui/webui/options/options_ui.h" |
17 #include "chrome/browser/ui/webui/uber/uber_ui.h" | 17 #include "chrome/browser/ui/webui/uber/uber_ui.h" |
18 #include "chrome/common/pref_names.h" | 18 #include "chrome/common/pref_names.h" |
19 #include "chrome/common/url_constants.h" | 19 #include "chrome/common/url_constants.h" |
| 20 #include "chrome/grit/generated_resources.h" |
20 #include "chrome/test/base/ui_test_utils.h" | 21 #include "chrome/test/base/ui_test_utils.h" |
21 #include "components/signin/core/browser/signin_manager.h" | 22 #include "components/signin/core/browser/signin_manager.h" |
22 #include "content/public/browser/notification_service.h" | 23 #include "content/public/browser/notification_service.h" |
23 #include "content/public/browser/render_frame_host.h" | 24 #include "content/public/browser/render_frame_host.h" |
24 #include "content/public/browser/web_contents.h" | 25 #include "content/public/browser/web_contents.h" |
25 #include "content/public/test/browser_test_utils.h" | 26 #include "content/public/test/browser_test_utils.h" |
26 #include "content/public/test/test_utils.h" | 27 #include "content/public/test/test_utils.h" |
27 #include "grit/generated_resources.h" | |
28 #include "ui/base/l10n/l10n_util.h" | 28 #include "ui/base/l10n/l10n_util.h" |
29 | 29 |
30 #if !defined(OS_CHROMEOS) | 30 #if !defined(OS_CHROMEOS) |
31 #include <string> | 31 #include <string> |
32 | 32 |
33 #include "base/basictypes.h" | 33 #include "base/basictypes.h" |
34 #include "base/bind.h" | 34 #include "base/bind.h" |
35 #include "base/callback.h" | 35 #include "base/callback.h" |
36 #include "base/files/file_path.h" | 36 #include "base/files/file_path.h" |
37 #include "base/run_loop.h" | 37 #include "base/run_loop.h" |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 run_loop.Run(); | 330 run_loop.Run(); |
331 | 331 |
332 // Verify that the settings page has updated and lists two profiles. | 332 // Verify that the settings page has updated and lists two profiles. |
333 ASSERT_TRUE(content::ExecuteScriptAndExtractInt( | 333 ASSERT_TRUE(content::ExecuteScriptAndExtractInt( |
334 contents, javascript, &profiles)); | 334 contents, javascript, &profiles)); |
335 EXPECT_EQ(2, profiles); | 335 EXPECT_EQ(2, profiles); |
336 } | 336 } |
337 #endif | 337 #endif |
338 | 338 |
339 } // namespace options | 339 } // namespace options |
OLD | NEW |