Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1238)

Side by Side Diff: chrome/browser/chromeos/status/clock_menu_button_browsertest.cc

Issue 5682007: Cleanup: Remove needed #includes for profile.h. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/chromeos/cros/cros_library.h" 8 #include "chrome/browser/chromeos/cros/cros_library.h"
9 #include "chrome/browser/chromeos/cros/system_library.h" 9 #include "chrome/browser/chromeos/cros/system_library.h"
10 #include "chrome/browser/chromeos/frame/browser_view.h" 10 #include "chrome/browser/chromeos/frame/browser_view.h"
11 #include "chrome/browser/chromeos/status/status_area_view.h" 11 #include "chrome/browser/chromeos/status/status_area_view.h"
12 #include "chrome/browser/chromeos/view_ids.h" 12 #include "chrome/browser/chromeos/view_ids.h"
13 #include "chrome/browser/prefs/pref_member.h" 13 #include "chrome/browser/prefs/pref_member.h"
14 #include "chrome/browser/profiles/profile.h"
15 #include "chrome/browser/ui/browser.h" 14 #include "chrome/browser/ui/browser.h"
16 #include "chrome/browser/ui/browser_window.h" 15 #include "chrome/browser/ui/browser_window.h"
17 #include "chrome/common/pref_names.h" 16 #include "chrome/common/pref_names.h"
18 #include "chrome/test/in_process_browser_test.h" 17 #include "chrome/test/in_process_browser_test.h"
19 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
20 #include "unicode/calendar.h" 19 #include "unicode/calendar.h"
21 #include "unicode/timezone.h" 20 #include "unicode/timezone.h"
22 21
23 namespace chromeos { 22 namespace chromeos {
24 23
(...skipping 19 matching lines...) Expand all
44 // Update timezone and make sure clock text changes. 43 // Update timezone and make sure clock text changes.
45 scoped_ptr<icu::TimeZone> timezone_first(icu::TimeZone::createTimeZone( 44 scoped_ptr<icu::TimeZone> timezone_first(icu::TimeZone::createTimeZone(
46 icu::UnicodeString::fromUTF8("Asia/Hong_Kong"))); 45 icu::UnicodeString::fromUTF8("Asia/Hong_Kong")));
47 CrosLibrary::Get()->GetSystemLibrary()->SetTimezone(timezone_first.get()); 46 CrosLibrary::Get()->GetSystemLibrary()->SetTimezone(timezone_first.get());
48 std::wstring text_before = clock->text(); 47 std::wstring text_before = clock->text();
49 scoped_ptr<icu::TimeZone> timezone_second(icu::TimeZone::createTimeZone( 48 scoped_ptr<icu::TimeZone> timezone_second(icu::TimeZone::createTimeZone(
50 icu::UnicodeString::fromUTF8("Pacific/Samoa"))); 49 icu::UnicodeString::fromUTF8("Pacific/Samoa")));
51 CrosLibrary::Get()->GetSystemLibrary()->SetTimezone(timezone_second.get()); 50 CrosLibrary::Get()->GetSystemLibrary()->SetTimezone(timezone_second.get());
52 std::wstring text_after = clock->text(); 51 std::wstring text_after = clock->text();
53 EXPECT_NE(text_before, text_after); 52 EXPECT_NE(text_before, text_after);
54
55 } 53 }
56 54
57 } // namespace chromeos 55 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/status/clock_menu_button.cc ('k') | chrome/browser/chromeos/status/input_method_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698