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

Side by Side Diff: chrome/browser/bookmarks/bookmark_utils_unittest.cc

Issue 7616019: Reorganize chrome/test, part #9 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "testing/gtest/include/gtest/gtest.h" 5 #include "testing/gtest/include/gtest/gtest.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/bookmarks/bookmark_model.h" 10 #include "chrome/browser/bookmarks/bookmark_model.h"
11 #include "chrome/browser/bookmarks/bookmark_utils.h" 11 #include "chrome/browser/bookmarks/bookmark_utils.h"
12 #include "chrome/test/testing_browser_process_test.h" 12 #include "chrome/test/base/testing_browser_process_test.h"
13 #include "ui/base/clipboard/scoped_clipboard_writer.h" 13 #include "ui/base/clipboard/scoped_clipboard_writer.h"
14 14
15 #if !defined(OS_MACOSX) 15 #if !defined(OS_MACOSX)
16 #include "chrome/browser/browser_process.h" 16 #include "chrome/browser/browser_process.h"
17 #endif 17 #endif
18 18
19 typedef TestingBrowserProcessTest BookmarkUtilsTest; 19 typedef TestingBrowserProcessTest BookmarkUtilsTest;
20 20
21 TEST_F(BookmarkUtilsTest, GetBookmarksContainingText) { 21 TEST_F(BookmarkUtilsTest, GetBookmarksContainingText) {
22 BookmarkModel model(NULL); 22 BookmarkModel model(NULL);
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 { 123 {
124 ui::ScopedClipboardWriter clipboard_writer(g_browser_process->clipboard()); 124 ui::ScopedClipboardWriter clipboard_writer(g_browser_process->clipboard());
125 clipboard_writer.WriteText(ASCIIToUTF16("foo")); 125 clipboard_writer.WriteText(ASCIIToUTF16("foo"));
126 } 126 }
127 127
128 // Now we shouldn't be able to paste from the clipboard. 128 // Now we shouldn't be able to paste from the clipboard.
129 EXPECT_FALSE( 129 EXPECT_FALSE(
130 bookmark_utils::CanPasteFromClipboard(model.bookmark_bar_node())); 130 bookmark_utils::CanPasteFromClipboard(model.bookmark_bar_node()));
131 } 131 }
132 #endif 132 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698