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

Side by Side Diff: chrome/browser/chromeos/cros/fake/fake_system_library.h

Issue 2847072: Green Tree Tactical Force: Revert skrul's bad commits (probably a git-cl bug). (Closed)
Patch Set: Created 10 years, 5 months 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_FAKE_FAKE_SYSTEM_LIBRARY_H_
6 #define CHROME_BROWSER_CHROMEOS_CROS_FAKE_FAKE_SYSTEM_LIBRARY_H_
7
8 #include <string>
9
10 #include "base/scoped_ptr.h"
11 #include "chrome/browser/chromeos/cros/system_library.h"
12 #include "unicode/timezone.h"
13
14 namespace chromeos {
15
16 class FakeSystemLibrary : public SystemLibrary {
17 public:
18 FakeSystemLibrary() {
19 std::string id = "US/Pacific";
20 icu::TimeZone* timezone =
21 icu::TimeZone::createTimeZone(icu::UnicodeString::fromUTF8(id));
22 timezone_.reset(timezone);
23 }
24 virtual ~FakeSystemLibrary() {}
25 virtual void AddObserver(Observer* observer) {}
26 virtual void RemoveObserver(Observer* observer) {}
27 virtual const icu::TimeZone& GetTimezone() {
28 return *timezone_.get();
29 }
30 virtual void SetTimezone(const icu::TimeZone*) {}
31
32 private:
33 scoped_ptr<icu::TimeZone> timezone_;
34 };
35
36 } // namespace chromeos
37
38 #endif // CHROME_BROWSER_CHROMEOS_CROS_FAKE_FAKE_SYSTEM_LIBRARY_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/cros/fake/fake_synaptics_library.h ('k') | chrome/browser/chromeos/cros/fake/fake_update_library.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698