Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: test/FilterEngine.cpp

Issue 5163715573841920: Issue 768 - Switch from TR1 to C++11 (Closed)
Patch Set: Created July 11, 2014, 2:24 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <http://adblockplus.org/>, 2 * This file is part of Adblock Plus <http://adblockplus.org/>,
3 * Copyright (C) 2006-2014 Eyeo GmbH 3 * Copyright (C) 2006-2014 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details. 12 * GNU General Public License for more details.
13 * 13 *
14 * You should have received a copy of the GNU General Public License 14 * You should have received a copy of the GNU General Public License
15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
16 */ 16 */
17 17
18 #include "BaseJsTest.h" 18 #include "BaseJsTest.h"
19 19
20 namespace 20 namespace
21 { 21 {
22 typedef std::tr1::shared_ptr<AdblockPlus::FilterEngine> FilterEnginePtr; 22 typedef std::shared_ptr<AdblockPlus::FilterEngine> FilterEnginePtr;
23 23
24 class VeryLazyFileSystem : public LazyFileSystem 24 class VeryLazyFileSystem : public LazyFileSystem
25 { 25 {
26 public: 26 public:
27 StatResult Stat(const std::string& path) const 27 StatResult Stat(const std::string& path) const
28 { 28 {
29 return StatResult(); 29 return StatResult();
30 } 30 }
31 }; 31 };
32 32
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 304
305 TEST_F(FilterEngineTest, FirstRunFlag) 305 TEST_F(FilterEngineTest, FirstRunFlag)
306 { 306 {
307 ASSERT_FALSE(filterEngine->IsFirstRun()); 307 ASSERT_FALSE(filterEngine->IsFirstRun());
308 } 308 }
309 309
310 TEST_F(FilterEngineTestNoData, FirstRunFlag) 310 TEST_F(FilterEngineTestNoData, FirstRunFlag)
311 { 311 {
312 ASSERT_TRUE(filterEngine->IsFirstRun()); 312 ASSERT_TRUE(filterEngine->IsFirstRun());
313 } 313 }
OLDNEW

Powered by Google App Engine
This is Rietveld