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

Side by Side Diff: components/search_engines/default_search_manager_unittest.cc

Issue 382663004: Componentize tests under search_engines (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Include search_engines even if os=="ios" Created 6 years, 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/files/scoped_temp_dir.h" 5 #include "base/files/scoped_temp_dir.h"
6 #include "base/memory/scoped_ptr.h" 6 #include "base/memory/scoped_ptr.h"
7 #include "base/strings/string_split.h" 7 #include "base/strings/string_split.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 315
316 ExpectSimilar(extension_data_3.get(), 316 ExpectSimilar(extension_data_3.get(),
317 manager.GetDefaultSearchEngine(&source)); 317 manager.GetDefaultSearchEngine(&source));
318 EXPECT_EQ(DefaultSearchManager::FROM_EXTENSION, source); 318 EXPECT_EQ(DefaultSearchManager::FROM_EXTENSION, source);
319 319
320 manager.ClearExtensionControlledDefaultSearchEngine(); 320 manager.ClearExtensionControlledDefaultSearchEngine();
321 321
322 ExpectSimilar(data.get(), manager.GetDefaultSearchEngine(&source)); 322 ExpectSimilar(data.get(), manager.GetDefaultSearchEngine(&source));
323 EXPECT_EQ(DefaultSearchManager::FROM_USER, source); 323 EXPECT_EQ(DefaultSearchManager::FROM_USER, source);
324 } 324 }
OLDNEW
« no previous file with comments | « components/components_tests.gyp ('k') | components/search_engines/default_search_policy_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698