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 "chrome/browser/chromeos/status/clock_menu_button.h" | 5 #include "chrome/browser/chromeos/status/clock_menu_button.h" |
6 | 6 |
7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
8 #include "chrome/browser/browser.h" | |
9 #include "chrome/browser/browser_window.h" | |
10 #include "chrome/browser/chromeos/cros/cros_library.h" | 8 #include "chrome/browser/chromeos/cros/cros_library.h" |
11 #include "chrome/browser/chromeos/cros/system_library.h" | 9 #include "chrome/browser/chromeos/cros/system_library.h" |
12 #include "chrome/browser/chromeos/frame/browser_view.h" | 10 #include "chrome/browser/chromeos/frame/browser_view.h" |
13 #include "chrome/browser/chromeos/status/status_area_view.h" | 11 #include "chrome/browser/chromeos/status/status_area_view.h" |
14 #include "chrome/browser/chromeos/view_ids.h" | 12 #include "chrome/browser/chromeos/view_ids.h" |
15 #include "chrome/browser/prefs/pref_member.h" | 13 #include "chrome/browser/prefs/pref_member.h" |
16 #include "chrome/browser/profile.h" | 14 #include "chrome/browser/profile.h" |
| 15 #include "chrome/browser/ui/browser.h" |
| 16 #include "chrome/browser/ui/browser_window.h" |
17 #include "chrome/common/pref_names.h" | 17 #include "chrome/common/pref_names.h" |
18 #include "chrome/test/in_process_browser_test.h" | 18 #include "chrome/test/in_process_browser_test.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
20 #include "unicode/calendar.h" | 20 #include "unicode/calendar.h" |
21 #include "unicode/timezone.h" | 21 #include "unicode/timezone.h" |
22 | 22 |
23 namespace chromeos { | 23 namespace chromeos { |
24 | 24 |
25 class ClockMenuButtonTest : public InProcessBrowserTest { | 25 class ClockMenuButtonTest : public InProcessBrowserTest { |
26 protected: | 26 protected: |
(...skipping 21 matching lines...) Expand all Loading... |
48 std::wstring text_before = clock->text(); | 48 std::wstring text_before = clock->text(); |
49 scoped_ptr<icu::TimeZone> timezone_second(icu::TimeZone::createTimeZone( | 49 scoped_ptr<icu::TimeZone> timezone_second(icu::TimeZone::createTimeZone( |
50 icu::UnicodeString::fromUTF8("Pacific/Samoa"))); | 50 icu::UnicodeString::fromUTF8("Pacific/Samoa"))); |
51 CrosLibrary::Get()->GetSystemLibrary()->SetTimezone(timezone_second.get()); | 51 CrosLibrary::Get()->GetSystemLibrary()->SetTimezone(timezone_second.get()); |
52 std::wstring text_after = clock->text(); | 52 std::wstring text_after = clock->text(); |
53 EXPECT_NE(text_before, text_after); | 53 EXPECT_NE(text_before, text_after); |
54 | 54 |
55 } | 55 } |
56 | 56 |
57 } // namespace chromeos | 57 } // namespace chromeos |
OLD | NEW |