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

Unified Diff: chrome/browser/chromeos/scoped_set_running_on_chromeos_for_testing.cc

Issue 2907493002: ChromeOS: Per-user time zone: refactor tests first. (Closed)
Patch Set: Fix debug build Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/scoped_set_running_on_chromeos_for_testing.cc
diff --git a/chrome/browser/chromeos/scoped_set_running_on_chromeos_for_testing.cc b/chrome/browser/chromeos/scoped_set_running_on_chromeos_for_testing.cc
new file mode 100644
index 0000000000000000000000000000000000000000..55121cc8abef01eb03bbcc19e0bedeac7d980fdb
--- /dev/null
+++ b/chrome/browser/chromeos/scoped_set_running_on_chromeos_for_testing.cc
@@ -0,0 +1,21 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/chromeos/scoped_set_running_on_chromeos_for_testing.h"
+
+#include "base/sys_info.h"
+
+namespace chromeos {
+
+ScopedSetRunningOnChromeOSForTesting::ScopedSetRunningOnChromeOSForTesting(
+ const std::string& lsb_release,
+ const base::Time& lsb_release_time) {
+ base::SysInfo::SetChromeOSVersionInfoForTest(lsb_release, lsb_release_time);
+}
+
+ScopedSetRunningOnChromeOSForTesting::~ScopedSetRunningOnChromeOSForTesting() {
+ base::SysInfo::SetChromeOSVersionInfoForTest("", base::Time());
+}
+
+} // namespace chromeos
« no previous file with comments | « chrome/browser/chromeos/scoped_set_running_on_chromeos_for_testing.h ('k') | chrome/browser/extensions/active_tab_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698