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

Unified Diff: components/spellcheck/browser/feedback_sender_unittest.cc

Issue 2159283003: [WIP][DO NOT LAND] Componentize spellcheck Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: components/spellcheck/browser/feedback_sender_unittest.cc
diff --git a/chrome/browser/spellchecker/feedback_sender_unittest.cc b/components/spellcheck/browser/feedback_sender_unittest.cc
similarity index 98%
rename from chrome/browser/spellchecker/feedback_sender_unittest.cc
rename to components/spellcheck/browser/feedback_sender_unittest.cc
index 5b420815320a79a5b40af174294f278bcbc10303..46368391880003f757383572f8332e19f84f0e9b 100644
--- a/chrome/browser/spellchecker/feedback_sender_unittest.cc
+++ b/components/spellcheck/browser/feedback_sender_unittest.cc
@@ -4,7 +4,7 @@
//
// Unit tests for |FeedbackSender| object.
-#include "chrome/browser/spellchecker/feedback_sender.h"
+#include "components/spellcheck/browser/feedback_sender.h"
#include <stddef.h>
#include <stdint.h>
@@ -17,13 +17,15 @@
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
-#include "chrome/common/chrome_switches.h"
-#include "chrome/common/spellcheck_common.h"
-#include "chrome/common/spellcheck_marker.h"
-#include "chrome/common/spellcheck_result.h"
-#include "chrome/test/base/testing_profile.h"
+//#include "chrome/common/chrome_switches.h"
+
+#include "components/spellcheck/common/spellcheck_common.h"
+#include "components/spellcheck/common/spellcheck_marker.h"
+#include "components/spellcheck/common/spellcheck_result.h"
+//#include "chrome/test/base/testing_profile.h"
#include "components/variations/entropy_provider.h"
#include "content/public/test/test_browser_thread.h"
+#include "content/public/common/content_switches.h"
#include "net/url_request/test_url_fetcher_factory.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -141,7 +143,7 @@ class FeedbackSenderTest : public testing::Test {
void ExpireSession() {
feedback_->session_start_ =
base::Time::Now() -
- base::TimeDelta::FromHours(chrome::spellcheck_common::kSessionHours);
+ base::TimeDelta::FromHours(spellcheck_common::kSessionHours);
}
bool UploadDataContains(const std::string& data) const {
@@ -182,7 +184,7 @@ class FeedbackSenderTest : public testing::Test {
private:
base::MessageLoop loop_;
- TestingProfile profile_;
+// TestingProfile profile_;
content::TestBrowserThread ui_thread_;
std::unique_ptr<base::FieldTrialList> field_trial_list_;
scoped_refptr<base::FieldTrial> field_trial_;
« no previous file with comments | « components/spellcheck/browser/feedback_sender.cc ('k') | components/spellcheck/browser/feedback_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698