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

Side by Side Diff: components/search_engines/default_search_policy_handler_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/memory/scoped_ptr.h" 5 #include "base/memory/scoped_ptr.h"
6 #include "components/policy/core/browser/configuration_policy_pref_store.h" 6 #include "components/policy/core/browser/configuration_policy_pref_store.h"
7 #include "components/policy/core/browser/configuration_policy_pref_store_test.h" 7 #include "components/policy/core/browser/configuration_policy_pref_store_test.h"
8 #include "components/search_engines/default_search_manager.h" 8 #include "components/search_engines/default_search_manager.h"
9 #include "components/search_engines/default_search_policy_handler.h" 9 #include "components/search_engines/default_search_policy_handler.h"
10 #include "components/search_engines/search_engines_pref_names.h" 10 #include "components/search_engines/search_engines_pref_names.h"
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 temp->GetAsDictionary(&dictionary); 479 temp->GetAsDictionary(&dictionary);
480 480
481 EXPECT_TRUE(dictionary->GetString(DefaultSearchManager::kURL, &value)); 481 EXPECT_TRUE(dictionary->GetString(DefaultSearchManager::kURL, &value));
482 EXPECT_EQ(kFileSearchURL, value); 482 EXPECT_EQ(kFileSearchURL, value);
483 EXPECT_TRUE(dictionary->GetString(DefaultSearchManager::kShortName, &value)); 483 EXPECT_TRUE(dictionary->GetString(DefaultSearchManager::kShortName, &value));
484 EXPECT_EQ("_", value); 484 EXPECT_EQ("_", value);
485 EXPECT_TRUE(dictionary->GetString(DefaultSearchManager::kKeyword, &value)); 485 EXPECT_TRUE(dictionary->GetString(DefaultSearchManager::kKeyword, &value));
486 EXPECT_EQ("_", value); 486 EXPECT_EQ("_", value);
487 } 487 }
488 } // namespace policy 488 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698