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

Unified Diff: base/mac_util_unittest.cc

Issue 333018: Add GrabWindowSnapshot method to mac_util class. This code is due to dmaclac... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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
« no previous file with comments | « base/mac_util.mm ('k') | base/mac_util_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/mac_util_unittest.cc
===================================================================
--- base/mac_util_unittest.cc (revision 30116)
+++ base/mac_util_unittest.cc (working copy)
@@ -1,27 +0,0 @@
-// Copyright (c) 2008 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 "base/mac_util.h"
-
-#include <ApplicationServices/ApplicationServices.h>
-
-#include "base/file_path.h"
-#include "testing/gtest/include/gtest/gtest.h"
-#include "testing/platform_test.h"
-
-typedef PlatformTest MacUtilTest;
-
-TEST_F(MacUtilTest, TestFSRef) {
- FSRef ref;
- std::string path("/System/Library");
-
- ASSERT_TRUE(mac_util::FSRefFromPath(path, &ref));
- EXPECT_EQ(path, mac_util::PathFromFSRef(ref));
-}
-
-TEST_F(MacUtilTest, TestLibraryPath) {
- FilePath library_dir = mac_util::GetUserLibraryPath();
- // Make sure the string isn't empty.
- EXPECT_FALSE(library_dir.value().empty());
-}
« no previous file with comments | « base/mac_util.mm ('k') | base/mac_util_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698