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

Unified Diff: ui/ozone/platform/test/test_window_manager.cc

Issue 1410123003: Rename "test" ozone platform to "headless" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Final fix Created 5 years, 1 month 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
« no previous file with comments | « ui/ozone/platform/test/test_window_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/test/test_window_manager.cc
diff --git a/ui/ozone/platform/test/test_window_manager.cc b/ui/ozone/platform/test/test_window_manager.cc
deleted file mode 100644
index 1887c6209d349fb202c45b0f2062b43f23c7937e..0000000000000000000000000000000000000000
--- a/ui/ozone/platform/test/test_window_manager.cc
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright 2014 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 "ui/ozone/platform/test/test_window_manager.h"
-
-#include "base/files/file_util.h"
-#include "base/location.h"
-
-namespace ui {
-
-TestWindowManager::TestWindowManager(const base::FilePath& dump_location)
- : location_(dump_location) {
-}
-
-TestWindowManager::~TestWindowManager() {
- DCHECK(thread_checker_.CalledOnValidThread());
-}
-
-void TestWindowManager::Initialize() {
- if (location_.empty())
- return;
- if (!DirectoryExists(location_) && !base::CreateDirectory(location_) &&
- location_ != base::FilePath("/dev/null"))
- PLOG(FATAL) << "unable to create output directory";
- if (!base::PathIsWritable(location_))
- PLOG(FATAL) << "unable to write to output location";
-}
-
-int32_t TestWindowManager::AddWindow(TestWindow* window) {
- return windows_.Add(window);
-}
-
-void TestWindowManager::RemoveWindow(int32_t window_id, TestWindow* window) {
- DCHECK_EQ(window, windows_.Lookup(window_id));
- windows_.Remove(window_id);
-}
-
-TestWindow* TestWindowManager::GetWindow(int32_t window_id) {
- return windows_.Lookup(window_id);
-}
-
-base::FilePath TestWindowManager::base_path() const {
- return location_;
-}
-
-} // namespace ui
« no previous file with comments | « ui/ozone/platform/test/test_window_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698