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

Side by Side Diff: chrome/browser/ui/views/extensions/browser_action_drag_data_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 "base/pickle.h" 5 #include "base/pickle.h"
6 #include "chrome/browser/ui/views/extensions/browser_action_drag_data.h" 6 #include "chrome/browser/ui/views/extensions/browser_action_drag_data.h"
7 #include "chrome/test/base/testing_browser_process_test.h"
7 #include "chrome/test/base/testing_profile.h" 8 #include "chrome/test/base/testing_profile.h"
8 #include "chrome/test/testing_browser_process_test.h"
9 #include "googleurl/src/gurl.h" 9 #include "googleurl/src/gurl.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 #include "ui/base/dragdrop/os_exchange_data.h" 11 #include "ui/base/dragdrop/os_exchange_data.h"
12 #include "ui/base/dragdrop/os_exchange_data_provider_win.h" 12 #include "ui/base/dragdrop/os_exchange_data_provider_win.h"
13 13
14 namespace { 14 namespace {
15 15
16 ui::OSExchangeData::Provider* CloneProvider(const ui::OSExchangeData& data) { 16 ui::OSExchangeData::Provider* CloneProvider(const ui::OSExchangeData& data) {
17 return new ui::OSExchangeDataProviderWin( 17 return new ui::OSExchangeDataProviderWin(
18 ui::OSExchangeDataProviderWin::GetIDataObject(data)); 18 ui::OSExchangeDataProviderWin::GetIDataObject(data));
(...skipping 29 matching lines...) Expand all
48 ui::OSExchangeData data; 48 ui::OSExchangeData data;
49 data.SetPickledData(BrowserActionDragData::GetBrowserActionCustomFormat(), 49 data.SetPickledData(BrowserActionDragData::GetBrowserActionCustomFormat(),
50 pickle); 50 pickle);
51 51
52 BrowserActionDragData drag_data; 52 BrowserActionDragData drag_data;
53 EXPECT_TRUE(drag_data.Read(ui::OSExchangeData(CloneProvider(data)))); 53 EXPECT_TRUE(drag_data.Read(ui::OSExchangeData(CloneProvider(data))));
54 ASSERT_TRUE(drag_data.IsFromProfile(profile.GetOriginalProfile())); 54 ASSERT_TRUE(drag_data.IsFromProfile(profile.GetOriginalProfile()));
55 ASSERT_STREQ(extension_id.c_str(), drag_data.id().c_str()); 55 ASSERT_STREQ(extension_id.c_str(), drag_data.id().c_str());
56 ASSERT_EQ(42, drag_data.index()); 56 ASSERT_EQ(42, drag_data.index());
57 } 57 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/bookmarks/bookmark_editor_view_unittest.cc ('k') | chrome/browser/ui/webui/theme_source_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698