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

Side by Side Diff: content/browser/download/download_id_unittest.cc

Issue 10501012: Move mock download test headers from content\test to content\public\test. This way we can enforce t… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/public/browser/download_id.h" 5 #include "content/public/browser/download_id.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "content/browser/browser_thread_impl.h" 13 #include "content/browser/browser_thread_impl.h"
14 #include "content/test/mock_download_manager.h" 14 #include "content/public/test/mock_download_manager.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 16
17 using content::BrowserThread; 17 using content::BrowserThread;
18 using content::BrowserThreadImpl; 18 using content::BrowserThreadImpl;
19 using content::DownloadId; 19 using content::DownloadId;
20 using content::DownloadManager; 20 using content::DownloadManager;
21 21
22 class DownloadIdTest : public testing::Test { 22 class DownloadIdTest : public testing::Test {
23 public: 23 public:
24 DownloadIdTest() 24 DownloadIdTest()
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 EXPECT_EQ(kLocalId[1], map[id2]); 144 EXPECT_EQ(kLocalId[1], map[id2]);
145 EXPECT_EQ(kLocalId[2], map[id3]); 145 EXPECT_EQ(kLocalId[2], map[id3]);
146 last = map.end(); 146 last = map.end();
147 EXPECT_FALSE(last == map.find(id1)); 147 EXPECT_FALSE(last == map.find(id1));
148 EXPECT_FALSE(last == map.find(id2)); 148 EXPECT_FALSE(last == map.find(id2));
149 EXPECT_FALSE(last == map.find(id3)); 149 EXPECT_FALSE(last == map.find(id3));
150 150
151 EXPECT_FALSE(id1 == id2); 151 EXPECT_FALSE(id1 == id2);
152 EXPECT_LT(id1, id2); 152 EXPECT_LT(id1, id2);
153 } 153 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698